kiosk-shell/util.c:149 wrong if condition on "surface"
at kiosk-shell/util.c:149,source code:
if (surface == NULL) {
weston_log("no memory\n");
return NULL;
}
view = weston_view_create(surface);
if (surface == NULL) {
weston_log("no memory\n");
weston_surface_destroy(surface);
return NULL;
}
the second if condition should depend on view, not on surface