summaryrefslogtreecommitdiff
path: root/src/plugin-loader.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/plugin-loader.c
parentdfccd984ac6c694a689c1f224efb4f4e2b27e01c (diff)
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/plugin-loader.c')
-rw-r--r--src/plugin-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin-loader.c b/src/plugin-loader.c
index 5343d4ae3..4429c345f 100644
--- a/src/plugin-loader.c
+++ b/src/plugin-loader.c
@@ -395,7 +395,7 @@ gabble_plugin_loader_create_channel_managers (
continue;
g_ptr_array_foreach (managers, copy_to_other_array, out);
- g_ptr_array_free (managers, TRUE);
+ g_ptr_array_unref (managers);
}
return out;