[gnome-disk-utility] don't use g_free on a GIcon, use g_object_unref in
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-disk-utility] don't use g_free on a GIcon, use g_object_unref in
- Date: Wed, 4 Mar 2009 11:40:42 -0500 (EST)
commit 15eda99b58d602119ba9df881595fcbb02853c2a
Author: David Zeuthen <davidz redhat com>
Date: Wed Mar 4 11:37:56 2009 -0500
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.
---
src/gdu-gtk/gdu-gtk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]