--- audio/media.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/audio/media.c b/audio/media.c index 42d8637..2076d04 100644 --- a/audio/media.c +++ b/audio/media.c @@ -264,7 +264,8 @@ done: if (request->cb) request->cb(endpoint, ret, size, request->user_data); - endpoint_request_free(request); + if (endpoint->request) + endpoint_request_free(endpoint->request); endpoint->request = NULL; } -- 1.7.1 -- 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