aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-task-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-task-shell-backend.c
parent5817e1ffb9bbe8449cc1881e2887f1a615cbea69 (diff)
downloadgsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar.gz
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.tar.zst
gsoc2013-evolution-6ea72f4fe7cd9ed44660589bf13eb153007cb62e.zip
Bug #659125 - Reference counting issues in calendar
Diffstat (limited to 'modules/calendar/e-task-shell-backend.c')
-rw-r--r--modules/calendar/e-task-shell-backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/calendar/e-task-shell-backend.c b/modules/calendar/e-task-shell-backend.c
index bb296fd5c2..f6a5e14588 100644
--- a/modules/calendar/e-task-shell-backend.c
+++ b/modules/calendar/e-task-shell-backend.c
@@ -422,6 +422,8 @@ task_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
g_warning (
"%s: Failed to create/open client: %s",
G_STRFUNC, error->message);
+ if (client)
+ g_object_unref (client);
g_object_unref (source_list);
g_error_free (error);
goto exit;
@@ -443,6 +445,7 @@ task_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;
}