summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-07-05 16:37:55 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-07-05 16:37:55 +0000
commit2438b1c58c0b45e1f5fd20af7410821787b88396 (patch)
treeb82c6d8363c6662373c57cbf2a47af0806c89a1f
parent63f8318eb5b4bcdda5701cf802642e2586f4c8cc (diff)
downloadlibgpod-tmz-2438b1c58c0b45e1f5fd20af7410821787b88396.tar.gz
libgpod-tmz-2438b1c58c0b45e1f5fd20af7410821787b88396.tar.xz
libgpod-tmz-2438b1c58c0b45e1f5fd20af7410821787b88396.zip
Fix memleak
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2035 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog4
-rw-r--r--src/db-artwork-parser.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fd4d7d9..e3d10dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2008-07-05 Christophe Fergeau <teuf@gnome.org>
+ * src/db-artwork-parser.c: fix small memory leak
+
+2008-07-05 Christophe Fergeau <teuf@gnome.org>
+
* src/ithumb-writer.c: fix typo in thumbnail rearranging code, we
were wrongly appending Itdb_Thumb_Ipod instances to lists of
Itdb_Thumb_Ipod_Item
diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c
index 1f4f84b..4d9aad7 100644
--- a/src/db-artwork-parser.c
+++ b/src/db-artwork-parser.c
@@ -378,6 +378,7 @@ parse_mhba (DBParseContext *ctx, GError *error)
num_children--;
mhod_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
}
+ g_free (mhod_ctx);
mhia_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
num_children = get_gint32 (mhba->num_mhias, ctx->byte_order);