[gnome-commander/gcmd-1-2-8] Fixed problem #603301 (crash when cancelling symlink creation by ESC)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] Fixed problem #603301 (crash when cancelling symlink creation by ESC)
- Date: Wed, 2 Dec 2009 22:28:12 +0000 (UTC)
commit 60f4e6e19b8f9853e700ed2ee5f0fc091dcaa0df
Author: Mamoru Tasaka <mtasaka ioa s u-tokyo ac jp>
Date: Wed Dec 2 23:24:12 2009 +0100
Fixed problem #603301 (crash when cancelling symlink creation by ESC)
NEWS | 1 +
doc/C/gnome-commander.xml | 3 +++
libgcmd/gnome-cmd-dialog.c | 1 +
libgcmd/gnome-cmd-string-dialog.c | 5 ++++-
4 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 5b1f41e..db9e0f8 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ gnome-commander 1.2.8.4
Bug fixes:
* Fixed problem #602916 (not working menu entry)
+ * Fixed problem #603301 (crash when cancelling symlink creation by ESC)
* Fixed Ubuntu problem #369818 (incorrect sorting by size in panel)
* Fixed problem with not working keypad enter in copy/move dialog
* Fixed problem with stalled keyboard after ALT+1/2 with hidden device list
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index e0279c4..dd5707c 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6015,6 +6015,9 @@
<para>Fixed problem #602916 (not working menu entry)</para>
</listitem>
<listitem>
+ <para>Fixed problem #603301 (crash when cancelling symlink creation by ESC)</para>
+ </listitem>
+ <listitem>
<para>Fixed Ubuntu problem #369818 (incorrect sorting by size in panel)</para>
</listitem>
<listitem>
diff --git a/libgcmd/gnome-cmd-dialog.c b/libgcmd/gnome-cmd-dialog.c
index ce89824..97a21a1 100644
--- a/libgcmd/gnome-cmd-dialog.c
+++ b/libgcmd/gnome-cmd-dialog.c
@@ -63,6 +63,7 @@ static void destroy (GtkObject *object)
(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
g_free (dialog->priv);
+ dialog->priv = NULL;
}
diff --git a/libgcmd/gnome-cmd-string-dialog.c b/libgcmd/gnome-cmd-string-dialog.c
index 4ab5fab..77d824e 100644
--- a/libgcmd/gnome-cmd-string-dialog.c
+++ b/libgcmd/gnome-cmd-string-dialog.c
@@ -82,8 +82,11 @@ destroy (GtkObject *object)
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
- g_free (dialog->priv->error_desc);
+ if (dialog->priv)
+ g_free (dialog->priv->error_desc);
+
g_free (dialog->priv);
+ dialog->priv = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]