[gtk+/wip/baedert/gtkimageview: 43/135] Fix some memory leaks
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 43/135] Fix some memory leaks
- Date: Tue, 19 Jul 2016 12:44:29 +0000 (UTC)
commit 10dbd959dd1fa6eec6e1c1a51f5f2db3029597cc
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]