From: U. Artie Eoff Date: Wed, 15 Jan 2014 21:38:51 +0000 (-0800) Subject: clients/window: fail if NULL returned from frame_create X-Git-Tag: upstream/0.1.8~487 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bae79ca741cffa611bcfd8ec5405868781326720;p=profile%2Fivi%2Fweston-ivi-shell.git clients/window: fail if NULL returned from frame_create Signed-off-by: U. Artie Eoff --- diff --git a/clients/window.c b/clients/window.c index dddfc67..d8d79d0 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4594,6 +4594,7 @@ window_show_menu(struct display *display, window_set_buffer_transform (menu->window, window_get_buffer_transform (parent)); menu->frame = frame_create(window->display->theme, 0, 0, FRAME_BUTTON_NONE, NULL); + fail_on_null(menu->frame); menu->entries = entries; menu->count = count; menu->release_count = 0;