No NULL check after creating surface/view/display

Fixed

Description

Needs a check to verify if both the surface/view was created successfully.

surface = ... if (!surface)

return;

view = ... if (!view) {

weston_surface_destroy(surface); }

Environment

None

Activity

Show:

Walt Miner 
May 25, 2022 at 3:25 PM

Close for MM 13.0.0

Zhou Mingying 
December 27, 2021 at 8:16 AM
(edited)

there's similar issue in wet_main function

--------------------------------------------

display = wl_display_create();

     ==> here need a null check

loop = wl_display_get_event_loop(display);

--------------------------------------------

 

Details

Assignee

Reporter

Fix versions

Labels

Hardware Platform(s) Affected

Raspberry Pi 4

Time tracking

4h logged

Due date

Priority

Created December 22, 2021 at 10:53 AM
Updated May 25, 2022 at 3:25 PM
Resolved April 13, 2022 at 1:53 AM