telepathy-glib: TpProxy: finish_all_requests: don't leak copied GQueue

Simon McVittie smcv at kemper.freedesktop.org
Thu Mar 13 06:54:22 PDT 2014


Module: telepathy-glib
Branch: master
Commit: d1b1f0bf72a2820ae5a51b25c7817c3005b687ab
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=d1b1f0bf72a2820ae5a51b25c7817c3005b687ab

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Mon Mar 10 17:30:44 2014 +0000

TpProxy: finish_all_requests: don't leak copied GQueue

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76000
Reviewed-by: Guillaume Desmottes

---

 telepathy-glib/proxy.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/telepathy-glib/proxy.c b/telepathy-glib/proxy.c
index 8d6befb..f7a5a0e 100644
--- a/telepathy-glib/proxy.c
+++ b/telepathy-glib/proxy.c
@@ -2208,7 +2208,7 @@ finish_all_requests (TpProxy *self,
       tp_proxy_prepare_request_finish (iter->data, error);
     }
 
-  g_queue_clear (tmp);
+  g_queue_free (tmp);
 }
 
 /*



More information about the telepathy-commits mailing list