aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-timezone-dialog/e-timezone-dialog.c
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 /widgets/e-timezone-dialog/e-timezone-dialog.c
parent201ede74d9db6d64513acb2445c8553f06252398 (diff)
downloadgsoc2013-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/e-timezone-dialog.c')
-rw-r--r--widgets/e-timezone-dialog/e-timezone-dialog.c7
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) {