r2023 - in trunk/src/target/OM-2007/openmoko-libs: . libmokoui
thomas at sita.openmoko.org
thomas at sita.openmoko.org
Fri May 18 19:40:22 CEST 2007
Author: thomas
Date: 2007-05-18 19:40:21 +0200 (Fri, 18 May 2007)
New Revision: 2023
Modified:
trunk/src/target/OM-2007/openmoko-libs/ChangeLog
trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-pixmap-button.c
Log:
* libmokoui/moko-pixmap-button.c:
(moko_pixmap_button_set_center_stock): Add check before g_object_unref ()
Modified: trunk/src/target/OM-2007/openmoko-libs/ChangeLog
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/ChangeLog 2007-05-18 17:19:19 UTC (rev 2022)
+++ trunk/src/target/OM-2007/openmoko-libs/ChangeLog 2007-05-18 17:40:21 UTC (rev 2023)
@@ -1,5 +1,10 @@
2007-05-18 Thomas Wood <thomas at openedhand.com>
+ * libmokoui/moko-pixmap-button.c:
+ (moko_pixmap_button_set_center_stock): Add check before g_object_unref ()
+
+2007-05-18 Thomas Wood <thomas at openedhand.com>
+
* libmokoui/moko-finger-tool-box.c: (cb_configure): Remove useless code
(also currently is causing a crash)
* libmokoui/moko-pixmap-button.c:
Modified: trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-pixmap-button.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-pixmap-button.c 2007-05-18 17:19:19 UTC (rev 2022)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-pixmap-button.c 2007-05-18 17:40:21 UTC (rev 2023)
@@ -266,7 +266,8 @@
36,
0, NULL);
priv->centerimage = gtk_image_new_from_pixbuf (pixbuf);
- g_object_unref (pixbuf);
+ if (pixbuf)
+ g_object_unref (pixbuf);
gtk_container_add (GTK_CONTAINER (loweralignment), priv->centerimage);
More information about the commitlog
mailing list