aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-02-27 02:24:16 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-02-27 02:24:16 +0800
commit2fe63c34bb2a8dcdf8e23b60938884240d5358af (patch)
tree7b5a7ebac6d4b023f9ca93cd280c6464d16749b7
parent201ede74d9db6d64513acb2445c8553f06252398 (diff)
downloadgsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.tar
gsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.tar.gz
gsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.tar.bz2
gsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.tar.lz
gsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.tar.xz
gsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.tar.zst
gsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.zip
don't reference uninitialized memory
2004-02-26 JP Rosevear <jpr@ximian.com> * e-timezone-dialog/e-timezone-dialog.c (e_timezone_dialog_dispose): don't reference uninitialized memory svn path=/trunk/; revision=24892
-rw-r--r--widgets/ChangeLog5
-rw-r--r--widgets/e-timezone-dialog/e-timezone-dialog.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog
index 0ee7c01e56..85ab1be87b 100644
--- a/widgets/ChangeLog
+++ b/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-26 JP Rosevear <jpr@ximian.com>
+
+ * e-timezone-dialog/e-timezone-dialog.c
+ (e_timezone_dialog_dispose): don't reference uninitialized memory
+
2003-12-16 Hans Petter Jansson <hpj@ximian.com>
* misc/e-source-option-menu.c (select_source_foreach_menu_item):
diff --git a/widgets/e-timezone-dialog/e-timezone-dialog.c b/widgets/e-timezone-dialog/e-timezone-dialog.c
index 77002b4b7c..3a31bbbf5d 100644
--- a/widgets/e-timezone-dialog/e-timezone-dialog.c
+++ b/widgets/e-timezone-dialog/e-timezone-dialog.c
@@ -127,7 +127,6 @@ e_timezone_dialog_dispose (GObject *object)
{
ETimezoneDialog *etd;
ETimezoneDialogPrivate *priv;
- GtkWidget *dialog;
g_return_if_fail (object != NULL);
g_return_if_fail (E_IS_TIMEZONE_DIALOG (object));
@@ -136,9 +135,9 @@ e_timezone_dialog_dispose (GObject *object)
priv = etd->priv;
/* Destroy the actual dialog. */
- if (dialog != NULL) {
- dialog = e_timezone_dialog_get_toplevel (etd);
- gtk_widget_destroy (dialog);
+ if (priv->app != NULL) {
+ gtk_widget_destroy (priv->app);
+ priv->app = NULL;
}
if (priv->timeout_id) {