[gdl] fix gdl#2 GdkPixbuf g_free -> g_object_unref
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdl] fix gdl#2 GdkPixbuf g_free -> g_object_unref
- Date: Fri, 29 Nov 2019 19:38:20 +0000 (UTC)
commit 9f11ad3ca8cef85b075419b30036d73648498dfe
Author: Thomas Holder <thomas holder schrodinger com>
Date: Fri Nov 29 11:06:33 2019 +0100
fix gdl#2 GdkPixbuf g_free -> g_object_unref
gdl/gdl-dock-object.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdl/gdl-dock-object.c b/gdl/gdl-dock-object.c
index daa2c7f..e751e99 100644
--- a/gdl/gdl-dock-object.c
+++ b/gdl/gdl-dock-object.c
@@ -416,7 +416,8 @@ gdl_dock_object_finalize (GObject *g_object)
g_free (object->priv->name);
g_free (object->priv->long_name);
g_free (object->priv->stock_id);
- g_free (object->priv->pixbuf_icon);
+ if (object->priv->pixbuf_icon)
+ g_object_unref (object->priv->pixbuf_icon);
G_OBJECT_CLASS (gdl_dock_object_parent_class)->finalize (g_object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]