[gnome-photos] 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] thumbnail-factory: Don't leak the thumbnailer path string
- Date: Mon, 1 Jan 2018 13:51:25 +0000 (UTC)
commit c8f2f139470b538c39e3988a479137a3b3d0b0f3
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]