[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1822 - in Extractor: . src/plugins/thumbnail
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1822 - in Extractor: . src/plugins/thumbnail |
Date: |
Sat, 20 Aug 2005 21:21:21 -0700 (PDT) |
Author: grothoff
Date: 2005-08-20 21:21:19 -0700 (Sat, 20 Aug 2005)
New Revision: 1822
Modified:
Extractor/ChangeLog
Extractor/src/plugins/thumbnail/thumbnailextractor.c
Log:
fix
Modified: Extractor/ChangeLog
===================================================================
--- Extractor/ChangeLog 2005-08-21 04:16:35 UTC (rev 1821)
+++ Extractor/ChangeLog 2005-08-21 04:21:19 UTC (rev 1822)
@@ -1,3 +1,6 @@
+Sat Aug 20 21:27:17 PDT 2005
+ Fixed memory leak in thumbnail extractor.
+
Thu Aug 18 21:18:28 PDT 2005
Made quotations match GNU standards.
Modified: Extractor/src/plugins/thumbnail/thumbnailextractor.c
===================================================================
--- Extractor/src/plugins/thumbnail/thumbnailextractor.c 2005-08-21
04:16:35 UTC (rev 1821)
+++ Extractor/src/plugins/thumbnail/thumbnailextractor.c 2005-08-21
04:21:19 UTC (rev 1822)
@@ -114,8 +114,12 @@
in = gdk_pixbuf_loader_get_pixbuf(loader);
gdk_pixbuf_loader_close(loader,
NULL);
- if (in == NULL)
+ if (in == NULL) {
+ g_object_unref(loader);
return prev;
+ }
+ g_object_ref(in);
+ g_object_unref(loader);
height = gdk_pixbuf_get_height(in);
width = gdk_pixbuf_get_width(in);
format = malloc(64);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1822 - in Extractor: . src/plugins/thumbnail,
grothoff <=