Drop the CALLS_DISPOSE_OBJECT() macro

Replace it by g_clear_object() as it does the same thing.
This commit is contained in:
Adrien Plazas
2018-08-03 11:08:55 +02:00
parent 700966ccfe
commit 52f7f2da6f
10 changed files with 18 additions and 26 deletions

View File

@@ -71,14 +71,6 @@ G_BEGIN_DECLS
#define CALLS_DISPOSE_OBJECT(obj_ptr) \
if (obj_ptr) \
{ \
g_object_unref (G_OBJECT (obj_ptr)); \
obj_ptr = NULL; \
}
#define CALLS_SET_OBJECT_PROPERTY(obj_ptr,new_value) \
if (obj_ptr) \
{ \