diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-10-22 10:47:22 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-10-22 10:47:22 +0100 |
commit | 9e7ac5a93dc62b6174472e2431b8f297177b2427 (patch) | |
tree | 979f51f392435b06fcfdaf606237b72bfb87f91c /telepathy-glib/connection-handles.c | |
parent | b8d6d79a5f4f890704da5cfc41d010f805cc5e70 (diff) | |
download | telepathy-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.c | 4 |
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); + } } |