diff options
-rw-r--r-- | widgets/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-timezone-dialog/e-timezone-dialog.c | 7 |
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) { |