From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- android/scpp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/scpp.c b/android/scpp.c index b831680..9d8bb10 100644 --- a/android/scpp.c +++ b/android/scpp.c @@ -62,8 +62,7 @@ struct bt_scpp { static void scpp_free(struct bt_scpp *scan) { - if (scan->attrib) - g_attrib_unref(scan->attrib); + bt_scpp_detach(scan); g_free(scan->primary); g_free(scan); -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html