summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2011-12-06 20:29:15 +0530
committerJohan Hedberg <johan.hedberg@intel.com>2011-12-08 12:39:34 +0200
commit440d8578a7668ffaacc84f1db30a8b28e8bf01ca (patch)
tree03c4cdf81b665de095165efeab01ed0bc29baa32 /audio
parentefe0957092da40ed9973f023a6886fa7f83264d7 (diff)
downloadbluez-440d8578a7668ffaacc84f1db30a8b28e8bf01ca.tar.gz
telephony-maemo5: Fix D-Bus reply memory leaks
Diffstat (limited to 'audio')
-rw-r--r--audio/telephony-maemo5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/telephony-maemo5.c b/audio/telephony-maemo5.c
index 23801c0bd..28320629f 100644
--- a/audio/telephony-maemo5.c
+++ b/audio/telephony-maemo5.c
@@ -1599,12 +1599,12 @@ static void signal_strength_reply(DBusPendingCall *call, void *user_data)
error("Unable to parse signal_strength reply: %s, %s",
err.name, err.message);
dbus_error_free(&err);
- return;
+ goto done;
}
if (net_err != 0) {
error("get_signal_strength failed with code %d", net_err);
- return;
+ goto done;
}
update_signal_strength(signals_bar);
@@ -1654,12 +1654,12 @@ static void registration_status_reply(DBusPendingCall *call, void *user_data)
error("Unable to parse registration_status_change reply:"
" %s, %s", err.name, err.message);
dbus_error_free(&err);
- return;
+ goto done;
}
if (net_err != 0) {
error("get_registration_status failed with code %d", net_err);
- return;
+ goto done;
}
update_registration_status(status, lac, cell_id, operator_code,