From 15eda99b58d602119ba9df881595fcbb02853c2a Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Wed, 04 Mar 2009 16:37:56 +0000 Subject: don't use g_free on a GIcon, use g_object_unref instead This fixes a crash when attempting to change the passphrase of a LUKS device. --- diff --git a/src/gdu-gtk/gdu-gtk.c b/src/gdu-gtk/gdu-gtk.c index d86599a..d0a41d4 100644 --- a/src/gdu-gtk/gdu-gtk.c +++ b/src/gdu-gtk/gdu-gtk.c @@ -1057,7 +1057,7 @@ out: g_free (window_title); if (window_icon != NULL) - g_free (window_icon); + g_object_unref (window_icon); if (device != NULL) g_object_unref (device); return ret; -- cgit v0.8.2