[gegl] operations/external/raw-load: Don't leak the cached path



commit 28f7cee94bedc5084dde0033064e4c9ca9334de8
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Feb 4 19:48:31 2017 +0100

    operations/external/raw-load: Don't leak the cached path
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778160

 operations/external/raw-load.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/operations/external/raw-load.c b/operations/external/raw-load.c
index d2c739a..dedb620 100644
--- a/operations/external/raw-load.c
+++ b/operations/external/raw-load.c
@@ -66,6 +66,7 @@ raw_close (GeglProperties *o)
 {
   Private *p = (Private*)o->user_data;
 
+  g_clear_pointer (&p->cached_path, g_free);
   g_clear_pointer (&p->image, (GDestroyNotify) libraw_dcraw_clear_mem);
   g_clear_pointer (&p->LibRaw, (GDestroyNotify) libraw_close);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]