]> err.no Git - libchamplain/commitdiff
Fix a memory leak
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 26 Oct 2008 18:22:07 +0000 (14:22 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 26 Oct 2008 18:22:07 +0000 (14:22 -0400)
champlain/tile.c
champlain/zoomlevel.h

index 5302497a496209575f9d4560b36fe354e55f8ac7..de1ae37be20f6cb4a3f27d6d47df8aa9e9695167 100644 (file)
@@ -168,6 +168,7 @@ file_loaded_cb (SoupSession *session,
       g_free (filename);
       g_free (map_filename);
     }
+  g_free (ptr);
 }
 
 Tile*
index 7c9ab7448801603446a7cc442a6f2ee141c6d25d..63e8d7403a75e2fe8314e1eb95331639fb1aedef 100644 (file)
@@ -25,7 +25,7 @@
 
 typedef struct
 {
-       int level;
+  int level;
   int row_count;
   int column_count;
   int tile_size;