[Xfce4-commits] [apps/ristretto] 01/01: Fix memory leak in thumbnailer if image file not found
noreply at xfce.org
noreply at xfce.org
Wed Oct 5 10:39:56 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/ristretto.
commit 69b7459957427aed16caddb699c5b496dfb6deee
Author: Igor <f2404 at yandex.ru>
Date: Wed Oct 5 11:39:15 2016 +0300
Fix memory leak in thumbnailer if image file not found
Fixes https://bugzilla.xfce.org/show_bug.cgi?id=12034
---
src/file.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/file.c b/src/file.c
index 8491054..a17dc4f 100644
--- a/src/file.c
+++ b/src/file.c
@@ -551,15 +551,15 @@ rstto_file_get_thumbnail (
thumbnail_path = rstto_file_get_thumbnail_path (r_file);
- thumbnailer = rstto_thumbnailer_new();
- rstto_thumbnailer_queue_file (thumbnailer, r_file);
-
if (NULL == thumbnail_path)
{
/* No thumbnail to return at this time */
return NULL;
}
+ thumbnailer = rstto_thumbnailer_new();
+ rstto_thumbnailer_queue_file (thumbnailer, r_file);
+
/* FIXME:
*
* The thumbnail should be updated on the "ready" signal
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list