plugins: use g_autoptr for GError

This commit is contained in:
Evangelos Ribeiro Tzaras
2021-02-24 09:26:47 +01:00
parent 3f197149a8
commit 7a6b702a31
5 changed files with 11 additions and 11 deletions

View File

@@ -303,7 +303,7 @@ dial_cb (MMModemVoice *voice,
CallsMMOrigin *self)
{
MMCall *call;
GError *error = NULL;
g_autoptr (GError) error = NULL;
call = mm_modem_voice_create_call_finish (voice, res, &error);
if (!call)
@@ -370,7 +370,7 @@ delete_call_cb (MMModemVoice *voice,
struct CallsMMOriginDeleteCallData *data)
{
gboolean ok;
GError *error = NULL;
g_autoptr (GError) error = NULL;
ok = mm_modem_voice_delete_call_finish (voice, res, &error);
if (!ok)
@@ -463,7 +463,7 @@ call_added_list_calls_cb (MMModemVoice *voice,
struct CallsMMOriginCallAddedData *data)
{
GList *calls;
GError *error = NULL;
g_autoptr (GError) error = NULL;
calls = mm_modem_voice_list_calls_finish (voice, res, &error);
if (!calls)
@@ -585,7 +585,7 @@ list_calls_cb (MMModemVoice *voice,
CallsMMOrigin *self)
{
GList *calls, *node;
GError *error = NULL;
g_autoptr (GError) error = NULL;
calls = mm_modem_voice_list_calls_finish (voice, res, &error);
if (!calls)