summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/avdtp.c2
-rw-r--r--audio/manager.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index b3ae7bac..bc021d6c 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1852,7 +1852,7 @@ static void avdtp_connect_cb(GIOChannel *chan, GError *err, gpointer user_data)
BT_IO_OPT_INVALID);
if (gerr) {
error("%s", gerr->message);
- g_clear_error(&gerr);
+ g_error_free(gerr);
goto failed;
}
diff --git a/audio/manager.c b/audio/manager.c
index 35f9c6e5..d7ecfb40 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -445,7 +445,7 @@ static void ag_confirm(GIOChannel *chan, gpointer data)
BT_IO_OPT_INVALID);
if (err) {
error("%s", err->message);
- g_clear_error(&err);
+ g_error_free(err);
goto drop;
}
@@ -590,7 +590,7 @@ static int headset_server_init(struct audio_adapter *adapter)
failed:
error("%s", err->message);
- g_clear_error(&err);
+ g_error_free(err);
if (adapter->hsp_ag_server) {
g_io_channel_close(adapter->hsp_ag_server);
g_io_channel_unref(adapter->hsp_ag_server);