[gnome-documents/gnome-3-20] utils: Don't leak the URI when thumbnailing
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-20] utils: Don't leak the URI when thumbnailing
- Date: Tue, 20 Jun 2017 08:32:44 +0000 (UTC)
commit d284d304055d7d48f833098f3c055c91cac18a42
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Mar 31 20:18:03 2017 +0200
utils: Don't leak the URI when thumbnailing
https://bugzilla.gnome.org/show_bug.cgi?id=780780
src/lib/gd-utils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/gd-utils.c b/src/lib/gd-utils.c
index 5e6254a..2e2daa5 100644
--- a/src/lib/gd-utils.c
+++ b/src/lib/gd-utils.c
@@ -43,7 +43,7 @@ create_thumbnail (GIOSchedulerJob *job,
GFile *file = G_FILE (g_async_result_get_source_object (G_ASYNC_RESULT (result)));
GnomeDesktopThumbnailFactory *factory = NULL;
GFileInfo *info = NULL;
- gchar *uri;
+ gchar *uri = NULL;
GdkPixbuf *pixbuf = NULL;
guint64 mtime;
@@ -87,6 +87,7 @@ create_thumbnail (GIOSchedulerJob *job,
g_object_unref (file);
g_clear_object (&factory);
g_clear_object (&pixbuf);
+ g_free (uri);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]