summaryrefslogtreecommitdiff
path: root/telepathy-glib/connection-handles.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-10-22 10:47:22 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-10-22 10:47:22 +0100
commit9e7ac5a93dc62b6174472e2431b8f297177b2427 (patch)
tree979f51f392435b06fcfdaf606237b72bfb87f91c /telepathy-glib/connection-handles.c
parentb8d6d79a5f4f890704da5cfc41d010f805cc5e70 (diff)
downloadtelepathy-glib-9e7ac5a93dc62b6174472e2431b8f297177b2427.tar.gz
tp_connection_unref_handles: if no handles are to be released, don't leak memory
Diffstat (limited to 'telepathy-glib/connection-handles.c')
-rw-r--r--telepathy-glib/connection-handles.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-glib/connection-handles.c b/telepathy-glib/connection-handles.c
index 0726eafea..6d1ff10b6 100644
--- a/telepathy-glib/connection-handles.c
+++ b/telepathy-glib/connection-handles.c
@@ -338,6 +338,10 @@ tp_connection_unref_handles (TpConnection *self,
tp_cli_connection_call_release_handles (self, -1,
handle_type, unref, post_unref, unref, array_free_TRUE, NULL);
}
+ else
+ {
+ g_array_free (unref, TRUE);
+ }
}