From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- android/dis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/dis.c b/android/dis.c index ce6e063..0a2a18e 100644 --- a/android/dis.c +++ b/android/dis.c @@ -62,8 +62,7 @@ struct characteristic { static void dis_free(struct bt_dis *dis) { - if (dis->attrib) - g_attrib_unref(dis->attrib); + bt_dis_detach(dis); g_free(dis->primary); g_free(dis); -- 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