core: Drop ot_clear_ptrarray in favor of g_clear_pointer

This commit is contained in:
Colin Walters committed 2012-07-17 08:16:54 -04:00
1 parent 2ced4abf11
commit 43a2fec6a8
3 files changed
+9 -15

No files matched your search

-6
View File
@@ -27,12 +27,6 @@
G_BEGIN_DECLS
#define ot_clear_ptrarray(a_v) do { \
if (*a_v) \
g_ptr_array_unref (*a_v); \
*a_v = NULL; \
} while (0);
#define ot_clear_hashtable(a_v) do { \
if (*a_v) \
g_hash_table_unref (*a_v); \