aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-02-01 00:31:36 +0800
committerMilan Crha <mcrha@redhat.com>2013-02-01 00:31:36 +0800
commitfc3bf6f39e7215df6325515afff3217aedb2cc10 (patch)
tree0d39db4178d28c69e9aabe76847a998fdf37f27c
parent763081aa862908e845bc780b784d939a07abd508 (diff)
downloadgsoc2013-evolution-fc3bf6f39e7215df6325515afff3217aedb2cc10.tar.gz
gsoc2013-evolution-fc3bf6f39e7215df6325515afff3217aedb2cc10.tar.zst
gsoc2013-evolution-fc3bf6f39e7215df6325515afff3217aedb2cc10.zip
Bug #689476 - Slow composer open (ENameSelector object leaks)
-rw-r--r--e-util/e-name-selector.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/e-util/e-name-selector.c b/e-util/e-name-selector.c
index 21cd93cc1a..38ade81fb3 100644
--- a/e-util/e-name-selector.c
+++ b/e-util/e-name-selector.c
@@ -296,6 +296,16 @@ name_selector_dispose (GObject *object)
g_array_set_size (priv->source_books, 0);
g_array_set_size (priv->sections, 0);
+ if (priv->dialog) {
+ gtk_widget_destroy (GTK_WIDGET (priv->dialog));
+ priv->dialog = NULL;
+ }
+
+ if (priv->model) {
+ g_object_unref (priv->model);
+ priv->model = NULL;
+ }
+
/* Chain up to parent's dispose() method. */
G_OBJECT_CLASS (e_name_selector_parent_class)->dispose (object);
}