core: Drop ot_clear_ptrarray in favor of g_clear_pointer
This commit is contained in:
1 parent
2ced4abf11
commit
43a2fec6a8
3 files changed
+9
-15
No files matched your search
@@ -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); \
|
||||
|
||||
Reference in new issue
Block a user