libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit c87dab5b377b634321e403bdf32d3d415079903f
parent 84e2deeb42839dfc7f686ed191dcf4428cf3751a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 21 Aug 2005 04:21:19 +0000

fix

Diffstat:
MChangeLog | 3+++
Msrc/plugins/thumbnail/thumbnailextractor.c | 6+++++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -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. diff --git a/src/plugins/thumbnail/thumbnailextractor.c b/src/plugins/thumbnail/thumbnailextractor.c @@ -114,8 +114,12 @@ struct EXTRACTOR_Keywords * libextractor_thumbnail_extract(const char * filename 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);