summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/db-artwork-parser.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 69b143b..269d7ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-30 Christophe Fergeau <teuf@gnome.org>
+
+ * src/db-artwork-parser.c: add missing g_free that could cause
+ memory leaks
+
2008-30-01 Christophe Fergeau <teuf@gnome.org>
Patch by Martin Aumueller
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;