From a7803c0642a8f2923ce3c51a0a717688fe2c5459 Mon Sep 17 00:00:00 2001 From: Lim Siew Hoon Date: Thu, 10 Dec 2015 16:07:47 +0800 Subject: Add assert checking for allocated gen9_vp9_surface Signed-off-by: Lim Siew Hoon --- src/gen9_mfd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gen9_mfd.c b/src/gen9_mfd.c index d9ca3be..2d8ed7d 100644 --- a/src/gen9_mfd.c +++ b/src/gen9_mfd.c @@ -1277,6 +1277,7 @@ gen9_hcpd_init_vp9_surface(VADriverContextP ctx, if (!gen9_vp9_surface) { gen9_vp9_surface = calloc(sizeof(GenVP9Surface), 1); + assert(gen9_vp9_surface); gen9_vp9_surface->base.frame_store_id = -1; obj_surface->private_data = gen9_vp9_surface; } -- cgit v1.2.3