mm-origin: Prefer g_autoptr instead of explicit reference counting

This commit is contained in:
Evangelos Ribeiro Tzaras
2023-01-18 19:52:18 +01:00
parent f09852bc19
commit 0232430ae1

View File

@@ -326,7 +326,7 @@ dial (CallsOrigin *origin,
const char *number) const char *number)
{ {
CallsMMOrigin *self = CALLS_MM_ORIGIN (origin); CallsMMOrigin *self = CALLS_MM_ORIGIN (origin);
MMCallProperties *call_props; g_autoptr (MMCallProperties) call_props = NULL;
g_assert (self->voice != NULL); g_assert (self->voice != NULL);
@@ -338,8 +338,6 @@ dial (CallsOrigin *origin,
NULL, NULL,
(GAsyncReadyCallback) dial_cb, (GAsyncReadyCallback) dial_cb,
self); self);
g_object_unref (call_props);
} }