]> Pileus Git - grits/blobdiff - src/objects/gis-tile.c
Debugging and memory checking
[grits] / src / objects / gis-tile.c
index d11af4f3f72f8f51ebc3be6c30fcac259de97a5c..2fe720285fa3b2ed76356b98399c73c5ced05bfe 100644 (file)
@@ -47,8 +47,8 @@ gchar *gis_tile_get_path(GisTile *child)
                        if (parent->children[x][y] == child)
                                parts = g_list_prepend(parts, gis_tile_path_table[x][y]);
        GString *path = g_string_new("");
-       for (; parts; parts = parts->next)
-               g_string_append(path, parts->data);
+       for (GList *cur = parts; cur; cur = cur->next)
+               g_string_append(path, cur->data);
        g_list_free(parts);
        return g_string_free(path, FALSE);
 }
@@ -179,6 +179,7 @@ GisTile *gis_tile_gc(GisTile *self, time_t atime,
        return self;
 }
 
+/* Use GObject for this */
 void gis_tile_free(GisTile *self, GisTileFreeFunc free_func, gpointer user_data)
 {
        if (!self)