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

@@ -476,7 +476,7 @@ constructed (GObject *object)
(GAsyncReadyCallback)voice_new_cb,
self);
CALLS_DISPOSE_OBJECT (self->modem);
g_clear_object (&self->modem);
parent_class->constructed (object);
}
@@ -489,8 +489,8 @@ dispose (GObject *object)
CallsOfonoOrigin *self = CALLS_OFONO_ORIGIN (object);
remove_calls (self, NULL);
CALLS_DISPOSE_OBJECT (self->modem);
CALLS_DISPOSE_OBJECT (self->connection);
g_clear_object (&self->modem);
g_clear_object (&self->connection);
parent_class->dispose (object);
}