aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-01 21:09:10 +0800
committerMilan Crha <mcrha@redhat.com>2011-08-01 21:09:10 +0800
commit8c351c101f765906b72e08fe1caa833d994bff31 (patch)
tree2e5a63b8b807bd2aeebc517e5c86778695d17f43
parentb0e9be5c9ce54c79a26880713ac2617b724e015d (diff)
downloadgsoc2013-evolution-8c351c101f765906b72e08fe1caa833d994bff31.tar
gsoc2013-evolution-8c351c101f765906b72e08fe1caa833d994bff31.tar.gz
gsoc2013-evolution-8c351c101f765906b72e08fe1caa833d994bff31.tar.bz2
gsoc2013-evolution-8c351c101f765906b72e08fe1caa833d994bff31.tar.lz
gsoc2013-evolution-8c351c101f765906b72e08fe1caa833d994bff31.tar.xz
gsoc2013-evolution-8c351c101f765906b72e08fe1caa833d994bff31.tar.zst
gsoc2013-evolution-8c351c101f765906b72e08fe1caa833d994bff31.zip
Do not leak memory on each mail folder change
-rw-r--r--modules/mail/e-mail-shell-view-private.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index ee1c55ec24..72994449b3 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -115,6 +115,7 @@ mail_shell_view_folder_tree_selected_cb (EMailShellView *mail_shell_view,
/* Cancel any unfinished open folder operations. */
if (mail_shell_view->priv->opening_folder != NULL) {
g_cancellable_cancel (mail_shell_view->priv->opening_folder);
+ g_object_unref (mail_shell_view->priv->opening_folder);
mail_shell_view->priv->opening_folder = NULL;
}