mm-origin: Prefer g_autoptr instead of explicit reference counting
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user