summaryrefslogtreecommitdiff
path: root/src/call-stream.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-11-16 14:39:30 +0100
committerXavier Claessens <xclaesse@gmail.com>2011-11-16 15:56:47 +0100
commit769a97c2ed9e6cbfda656a65483f6142423adc36 (patch)
tree2fd5a84dd6c4a41d4e4e61d37780d65a630fa72f /src/call-stream.c
parentdfccd984ac6c694a689c1f224efb4f4e2b27e01c (diff)
downloadtelepathy-gabble-769a97c2ed9e6cbfda656a65483f6142423adc36.tar.gz
Use _unref instead of _free _destroy when possible.unref
Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
Diffstat (limited to 'src/call-stream.c')
-rw-r--r--src/call-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/call-stream.c b/src/call-stream.c
index 147d818df..4c51ed8ea 100644
--- a/src/call-stream.c
+++ b/src/call-stream.c
@@ -357,7 +357,7 @@ gabble_call_stream_constructed (GObject *obj)
{
GPtrArray *relays = g_ptr_array_new ();
tpy_base_media_call_stream_set_relay_info (media_base, relays);
- g_ptr_array_free (relays, TRUE);
+ g_ptr_array_unref (relays);
}
stun_servers = get_stun_servers (self);