mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
mir: release surfaces on errors
This commit is contained in:
parent
6aaeab0460
commit
a144087085
@ -548,6 +548,7 @@ _cogl_winsys_egl_onscreen_init (CoglOnscreen *onscreen,
|
||||
COGL_WINSYS_ERROR_CREATE_ONSCREEN,
|
||||
"Error while creating mir surface for CoglOnscreen: %s",
|
||||
mir_surface_get_error_message (mir_onscreen->mir_surface));
|
||||
mir_surface_release_sync (mir_onscreen->mir_surface);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -559,6 +560,7 @@ _cogl_winsys_egl_onscreen_init (CoglOnscreen *onscreen,
|
||||
"Error while getting mir egl native window "
|
||||
"for CoglOnscreen: %s",
|
||||
mir_surface_get_error_message (mir_onscreen->mir_surface));
|
||||
mir_surface_release_sync (mir_onscreen->mir_surface);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user