diff options
author | Milan Crha <mcrha@redhat.com> | 2011-06-24 00:30:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-06-24 00:30:36 +0800 |
commit | 4778e69589b8d5fca5b59cdb664b8e6e39a4697f (patch) | |
tree | 638161bcfa62d0a39a3f33b4979acb7a38159b5f /calendar/gui/dialogs/memo-page.c | |
parent | 4aff7a476d813922b5ded6a72a10b38f3ddfe006 (diff) | |
download | gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar.gz gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar.bz2 gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar.lz gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar.xz gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar.zst gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.zip |
Postpone ENameSelector loading as much as possible
Also fixes few memory leaks around ENameSelector and cancels
loading of its address books when not needed any more.
Diffstat (limited to 'calendar/gui/dialogs/memo-page.c')
-rw-r--r-- | calendar/gui/dialogs/memo-page.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index d720e91b1d..3a53421dd5 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -202,6 +202,12 @@ memo_page_finalize (GObject *object) priv = MEMO_PAGE (object)->priv; + if (priv->name_selector) { + e_name_selector_cancel_loading (priv->name_selector); + g_object_unref (priv->name_selector); + priv->name_selector = NULL; + } + if (priv->main != NULL) { g_object_unref (priv->main); priv->main = NULL; |