[gnac] Fixed potential memory leaks
- From: BenoÃt Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac] Fixed potential memory leaks
- Date: Mon, 13 Feb 2012 22:46:26 +0000 (UTC)
commit dab7cbdfcb9837b6c6aab41d1081575b0bf829ef
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date: Mon Feb 13 22:45:57 2012 +0000
Fixed potential memory leaks
libgnac/libgnac-metadata.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgnac/libgnac-metadata.c b/libgnac/libgnac-metadata.c
index 8b51f28..c8f1d39 100644
--- a/libgnac/libgnac-metadata.c
+++ b/libgnac/libgnac-metadata.c
@@ -237,12 +237,14 @@ libgnac_metadata_process_tag_image(const GstTagList *taglist,
if (!gdk_pixbuf_loader_write(loader, data, size, &error)) {
libgnac_debug("Error writing data to pixbuf: %s", error->message);
gdk_pixbuf_loader_close(loader, NULL);
+ g_object_unref(loader);
g_clear_error(&error);
return;
}
if (!gdk_pixbuf_loader_close(loader, &error)) {
libgnac_debug("Error closing pixbuf loader: %s", error->message);
+ g_object_unref(loader);
g_clear_error(&error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]