dundee: Fix out-of-order free

CALLBACK_WITH_FAILURE used data structure freed just beforehand
This commit is contained in:
Denis Kenzior 2015-05-13 15:44:39 -05:00
parent ce0529fcf6
commit a371f46735
1 changed files with 1 additions and 2 deletions

View File

@ -128,9 +128,8 @@ static void bt_connect(struct dundee_device *device,
if (status == 0)
return;
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, -1, cbd->data);
g_free(cbd);
}
struct dundee_device_driver bluetooth_driver = {