- Don't crash when changing the LUKS passphrase on a device

This commit is contained in:
David Zeuthen 2009-03-04 22:07:28 +00:00
parent fcf633fc6b
commit a5acf9488a
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,23 @@
From 15eda99b58d602119ba9df881595fcbb02853c2a Mon Sep 17 00:00:00 2001
From: David Zeuthen <davidz@redhat.com>
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

View File

@ -11,7 +11,7 @@
Summary: Disk management application
Name: gnome-disk-utility
Version: 0.2
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://gitweb.freedesktop.org/?p=users/david/gnome-disk-utility.git;a=summary
@ -34,6 +34,8 @@ BuildRequires: intltool
Requires(post): scrollkeeper
Requires(postun): scrollkeeper
Patch0: gdu-0.2-passphrase-change-crash.patch
%description
This package contains the Palimpsest disk management application.
Palimpsest supports partitioning, file system creation, encryption,
@ -87,6 +89,7 @@ develop applications with gnome-disk-utility-ui-libs.
%prep
%setup -q
%patch0 -p1 -b .luks-passphrase-change
%build
%configure
@ -194,6 +197,9 @@ fi
%{_includedir}/gnome-disk-utility/gdu-gtk/*
%changelog
* Wed Mar 04 2009 David Zeuthen <davidz@redhat.com> - 0.2-2%{?dist}
- Don't crash when changing the LUKS passphrase on a device
* Mon Mar 02 2009 David Zeuthen <davidz@redhat.com> - 0.2-1%{?dist}
- Update to version 0.2