[gnome-photos/gnome-3-26] thumbnail-factory: Don't leak the thumbnailer path string
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-26] thumbnail-factory: Don't leak the thumbnailer path string
- Date: Mon, 1 Jan 2018 13:56:49 +0000 (UTC)
commit 88a18f26b3ff979067162f1bdfceabd1d0fa2965
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jan 1 14:14:46 2018 +0100
thumbnail-factory: Don't leak the thumbnailer path string
src/photos-thumbnail-factory.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/photos-thumbnail-factory.c b/src/photos-thumbnail-factory.c
index bc845009..522c5221 100644
--- a/src/photos-thumbnail-factory.c
+++ b/src/photos-thumbnail-factory.c
@@ -440,13 +440,15 @@ photos_thumbnail_factory_generate_thumbnail (PhotosThumbnailFactory *self,
"--address",
address,
NULL);
+
+ g_free (thumbnailer_path);
+
if (local_error != NULL)
goto out;
g_mutex_unlock (&self->mutex_connection);
mutex_connection_unlocked = TRUE;
- g_free (thumbnailer_path);
g_object_unref (subprocess);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]