iface-modem-voice: plug task memleaks when returning error if cancelled
This commit is contained in:
@@ -1822,8 +1822,10 @@ in_call_setup_context_step (GTask *task)
|
|||||||
MMIfaceModemVoice *self;
|
MMIfaceModemVoice *self;
|
||||||
InCallSetupContext *ctx;
|
InCallSetupContext *ctx;
|
||||||
|
|
||||||
if (g_task_return_error_if_cancelled (task))
|
if (g_task_return_error_if_cancelled (task)) {
|
||||||
|
g_object_unref (task);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self = g_task_get_source_object (task);
|
self = g_task_get_source_object (task);
|
||||||
ctx = g_task_get_task_data (task);
|
ctx = g_task_get_task_data (task);
|
||||||
@@ -1950,8 +1952,10 @@ in_call_cleanup_context_step (GTask *task)
|
|||||||
MMIfaceModemVoice *self;
|
MMIfaceModemVoice *self;
|
||||||
InCallCleanupContext *ctx;
|
InCallCleanupContext *ctx;
|
||||||
|
|
||||||
if (g_task_return_error_if_cancelled (task))
|
if (g_task_return_error_if_cancelled (task)) {
|
||||||
|
g_object_unref (task);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self = g_task_get_source_object (task);
|
self = g_task_get_source_object (task);
|
||||||
ctx = g_task_get_task_data (task);
|
ctx = g_task_get_task_data (task);
|
||||||
|
Reference in New Issue
Block a user