diff options
author | JP Rosevear <jpr@ximian.com> | 2004-02-27 02:24:16 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-02-27 02:24:16 +0800 |
commit | 2fe63c34bb2a8dcdf8e23b60938884240d5358af (patch) | |
tree | 7b5a7ebac6d4b023f9ca93cd280c6464d16749b7 /widgets/e-timezone-dialog | |
parent | 201ede74d9db6d64513acb2445c8553f06252398 (diff) | |
download | gsoc2013-evolution-2fe63c34bb2a8dcdf8e23b60938884240d5358af.tar.gz 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
Diffstat (limited to 'widgets/e-timezone-dialog')
-rw-r--r-- | widgets/e-timezone-dialog/e-timezone-dialog.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) { |