aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-backend.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-09-15 20:54:31 +0800
committerMilan Crha <mcrha@redhat.com>2011-09-15 20:54:31 +0800
commit6ea72f4fe7cd9ed44660589bf13eb153007cb62e (patch)
tree7ec8cfe7d4816ade43eb9a76542fa323b219bb1b /modules/calendar/e-memo-shell-backend.c
parent5817e1ffb9bbe8449cc1881e2887f1a615cbea69 (diff)
downloadgsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar.gz
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar.bz2
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar.lz
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar.xz
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar.zst
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.zip
Bug #659125 - Reference counting issues in calendar
Diffstat (limited to 'modules/calendar/e-memo-shell-backend.c')
-rw-r--r--modules/calendar/e-memo-shell-backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-backend.c b/modules/calendar/e-memo-shell-backend.c
index 6f8070094e..7edb82d6bb 100644
--- a/modules/calendar/e-memo-shell-backend.c
+++ b/modules/calendar/e-memo-shell-backend.c
@@ -422,6 +422,8 @@ memo_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
g_warning (
"%s: Failed to create/open client: %s",
G_STRFUNC, error->message);
+ if (client != NULL)
+ g_object_unref (client);
g_object_unref (source_list);
g_error_free (error);
goto exit;
@@ -443,6 +445,7 @@ memo_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
"%s: Failed to get object: %s",
G_STRFUNC, error->message);
g_object_unref (source_list);
+ g_object_unref (client);
g_error_free (error);
goto exit;
}