GtkImage: Plug a memory leak

This commit is contained in:
Matthias Clasen 2015-07-21 23:04:30 -04:00
parent 0d7a9dc4b8
commit a56bd1c490

View File

@ -407,8 +407,6 @@ gtk_image_init (GtkImage *image)
gtk_widget_set_has_window (GTK_WIDGET (image), FALSE);
priv->icon_helper = _gtk_icon_helper_new ();
_gtk_icon_helper_set_icon_size (priv->icon_helper, DEFAULT_ICON_SIZE);
priv->filename = NULL;
}
static void
@ -419,6 +417,7 @@ gtk_image_finalize (GObject *object)
g_clear_object (&image->priv->icon_helper);
g_free (image->priv->filename);
g_free (image->priv->resource_path);
G_OBJECT_CLASS (gtk_image_parent_class)->finalize (object);
};