Drop the CALLS_FREE_PTR_PROPERTY() macro

Replace it by g_free() as it does the same thing.
This commit is contained in:
Adrien Plazas
2018-08-03 11:14:46 +02:00
parent 52f7f2da6f
commit 3ebf58548c
3 changed files with 5 additions and 11 deletions

View File

@@ -80,14 +80,8 @@ G_BEGIN_DECLS
g_object_ref (G_OBJECT (obj_ptr));
#define CALLS_FREE_PTR_PROPERTY(ptr) \
if (ptr) \
{ \
g_free (ptr); \
} \
#define CALLS_SET_PTR_PROPERTY(ptr,new_value) \
CALLS_FREE_PTR_PROPERTY (ptr) \
g_free (ptr); \
ptr = new_value;