[gegl] vhsfix: free all temp bufs



commit a4f19c1f9ebcbf4603b570783e8c3e10a305499f
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri May 20 23:18:57 2016 +0200

    vhsfix: free all temp bufs

 operations/workshop/vhsfix.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/operations/workshop/vhsfix.c b/operations/workshop/vhsfix.c
index 3530260..8e274d8 100644
--- a/operations/workshop/vhsfix.c
+++ b/operations/workshop/vhsfix.c
@@ -229,7 +229,11 @@ finalize (GObject *object)
     {
       Priv *p = (Priv*)o->user_data;
 
-      g_object_unref (p->acc);
+      for (int i=0;i< TEMP_BUFS;i++)
+        {
+          g_object_unref (p->acc[i]);
+          p->acc[i] = NULL;
+        }
 
       g_free (o->user_data);
       o->user_data = NULL;


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