[gtk+/wip/baedert/gtkimageview: 159/205] Fix some memory leaks



commit b559badbd48d9c5f8b3df1fa6407eafb3b7bca58
Author: Timm Bäder <mail baedert org>
Date:   Mon Jan 18 14:08:42 2016 +0100

    Fix some memory leaks

 gtk/gtkimageview.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index 07c1c19..5051339 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -1622,6 +1622,8 @@ gtk_image_view_finalize (GObject *object)
 
   gtk_image_view_stop_animation (image_view);
 
+  g_clear_object (&priv->source_animation);
+
   g_clear_object (&priv->rotate_gesture);
   g_clear_object (&priv->zoom_gesture);
 
@@ -1631,7 +1633,6 @@ gtk_image_view_finalize (GObject *object)
   if (priv->image_surface)
     cairo_surface_destroy (priv->image_surface);
 
-
   G_OBJECT_CLASS (gtk_image_view_parent_class)->finalize (object);
 }
 
@@ -1890,6 +1891,7 @@ gtk_image_view_load_image_contents (GTask        *task,
   GError *error = NULL;
   GFileInputStream *in_stream;
 
+  g_free (task_data);
   in_stream = g_file_read (file, cancellable, &error);
 
   if (error)


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