Drop the CALLS_DISPOSE_OBJECT() macro
Replace it by g_clear_object() as it does the same thing.
This commit is contained in:
@@ -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) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user