From 407e03e5c711e20eac1d2affafb729adc9df37f8 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Sun, 26 Oct 2008 14:22:07 -0400 Subject: [PATCH] Fix a memory leak --- champlain/tile.c | 1 + champlain/zoomlevel.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/champlain/tile.c b/champlain/tile.c index 5302497..de1ae37 100644 --- a/champlain/tile.c +++ b/champlain/tile.c @@ -168,6 +168,7 @@ file_loaded_cb (SoupSession *session, g_free (filename); g_free (map_filename); } + g_free (ptr); } Tile* diff --git a/champlain/zoomlevel.h b/champlain/zoomlevel.h index 7c9ab74..63e8d74 100644 --- a/champlain/zoomlevel.h +++ b/champlain/zoomlevel.h @@ -25,7 +25,7 @@ typedef struct { - int level; + int level; int row_count; int column_count; int tile_size; -- 2.39.5