summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-02-02 18:16:28 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-02-02 18:16:28 +0000
commit4301b37ee9060cc79955570ab403a659f08566b8 (patch)
tree15dd013eea478c9d7e2688ddb95dabda6cc1770e /src
parentde5c661e51d88169c8a078bcf4f00016e86fcf06 (diff)
downloadlibgpod-4301b37ee9060cc79955570ab403a659f08566b8.tar.gz
libgpod-4301b37ee9060cc79955570ab403a659f08566b8.tar.xz
libgpod-4301b37ee9060cc79955570ab403a659f08566b8.zip
Fix potential memory leaks
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1944 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src')
-rw-r--r--src/db-artwork-parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c
index bbeba53..e56ac9f 100644
--- a/src/db-artwork-parser.c
+++ b/src/db-artwork-parser.c
@@ -309,6 +309,7 @@ parse_mhii (DBParseContext *ctx, GError *error)
g_free (mhod_ctx);
mhod_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
}
+ g_free (mhod_ctx);
return 0;
}
@@ -393,6 +394,7 @@ parse_mhba (DBParseContext *ctx, GError *error)
g_free (mhia_ctx);
mhia_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
}
+ g_free (mhia_ctx);
photodb = db_get_photodb (ctx->db);
g_return_val_if_fail (photodb, -1);
photodb->photoalbums = g_list_append (photodb->photoalbums,
@@ -433,6 +435,7 @@ parse_mhl (DBParseContext *ctx, GError *error,
g_free (mhi_ctx);
mhi_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
}
+ g_free (mhi_ctx);
return 0;