Hi Lucas,
@@ -309,6 +309,9 @@ static void filter_data_call_and_free(struct filter_data *data) g_free(cb); } + g_slist_free(data->callbacks); + data->callbacks = NULL; + why not just removing the g_free(cb) above?
I did so to avoid filter_data_free() to go through the list once again, but indeed if the list is not going to be big, it's superfluous then. Tomasz -- 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