[gnome-commander] 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] Fixed problem #603301 (crash when cancelling symlink creation by ESC)
- Date: Wed, 2 Dec 2009 22:28:22 +0000 (UTC)
commit b6cee8a6fa8e026dbbdbea263b7053a958e415af
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 722084f..647ef82 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,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 4580962..485c31f 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6034,6 +6034,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]