summaryrefslogtreecommitdiff
path: root/app/wlib/gtklib/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/wlib/gtklib/button.c')
-rw-r--r--app/wlib/gtklib/button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/wlib/gtklib/button.c b/app/wlib/gtklib/button.c
index d9f4880..b5fabe8 100644
--- a/app/wlib/gtklib/button.c
+++ b/app/wlib/gtklib/button.c
@@ -101,8 +101,8 @@ void wlibSetLabel(
} else {
gtk_image_set_from_pixbuf(GTK_IMAGE(*imageG), pixbuf);
}
-
- g_object_unref(pixbuf);
+ g_object_ref_sink(pixbuf);
+ g_object_unref((gpointer)pixbuf);
} else {
if (*labelG==NULL) {
*labelG = (GtkLabel*)gtk_label_new(wlibConvertInput(labelStr));