From f5645872db78ad274fc185c2e81fb9f89f6eab8a Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 15 Jul 2014 21:12:34 +0200 Subject: moved more streamer functions into streamer thread via message queue --- handler.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'handler.c') diff --git a/handler.c b/handler.c index acef8f77..830bda2c 100644 --- a/handler.c +++ b/handler.c @@ -86,6 +86,9 @@ handler_free (handler_t *h) { int handler_push (handler_t *h, uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2) { + if (!h) { + return -1; + } if (!h->mfree) { return -1; } -- cgit v1.2.3