summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 16:22:48 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 16:22:48 -0300
commite777c55aa7cd84fe63bcdee16acde8d1a293b928 (patch)
treec2d87d3b6d274fbdd659f5946546120183b8f536 /audio/avdtp.c
parentc82739046f031f32e3e66128062818eea2fc9e9e (diff)
Make use of g_error_free instead of g_clear_error when possible.
g_clear_error make an extra operation (&err = NULL) which is not necessary when the GError is not reused.
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r--audio/avdtp.c2
1 files changed, 1 insertions, 1 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;
}