--- plugins/phonebook-ebook.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/plugins/phonebook-ebook.c b/plugins/phonebook-ebook.c index 395c54a..e4fcbe0 100644 --- a/plugins/phonebook-ebook.c +++ b/plugins/phonebook-ebook.c @@ -501,9 +501,17 @@ done: void phonebook_req_finalize(void *request) { struct query_context *data = request; + GSList *ebook = ebooks; DBG(""); + while (ebook != NULL) { + if (e_book_cancel(ebook->data, NULL) == TRUE) + data->queued_calls--; + + ebook = ebook->next; + } + if (data != NULL && data->queued_calls == 0) free_query_context(data); } -- 1.7.5.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