[gnome-documents] utils: Don't leak the URI when thumbnailing
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] utils: Don't leak the URI when thumbnailing
- Date: Mon, 3 Apr 2017 11:35:42 +0000 (UTC)
commit b58484a8413253827a4a08e74e4d9f44e333ee1f
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 7606631..bc21649 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]