From 8c351c101f765906b72e08fe1caa833d994bff31 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Aug 2011 15:09:10 +0200 Subject: Do not leak memory on each mail folder change --- modules/mail/e-mail-shell-view-private.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3