call-list: fix mm_call_list_delete_call to use g_task_report_new_error
Commit a08064492 ("call-list: port mm_call_list_delete_call to use GTask")
ported most of the mm_call_list_delete_call code to use GTask, but missed a
g_simple_async_report_error_in_idle calls, which can potentially lead to
an incorrect G_TASK cast in mm_call_list_delete_call_finish.
This commit is contained in:
committed by
Aleksander Morgado
parent
4901a67660
commit
0657914ebb
+8
-7
@@ -283,13 +283,14 @@ mm_call_list_delete_call (MMCallList *self,
|
||||
(gpointer)call_path,
|
||||
(GCompareFunc)cmp_call_by_path);
|
||||
if (!l) {
|
||||
g_simple_async_report_error_in_idle (G_OBJECT (self),
|
||||
callback,
|
||||
user_data,
|
||||
MM_CORE_ERROR,
|
||||
MM_CORE_ERROR_NOT_FOUND,
|
||||
"No CALL found with path '%s'",
|
||||
call_path);
|
||||
g_task_report_new_error (self,
|
||||
callback,
|
||||
user_data,
|
||||
mm_call_list_delete_call,
|
||||
MM_CORE_ERROR,
|
||||
MM_CORE_ERROR_NOT_FOUND,
|
||||
"No CALL found with path '%s'",
|
||||
call_path);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user