mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-18 20:18:59 +00:00
Fix error handling of X11Toolkit_InitWindowPixmap
This commit is contained in:
parent
d17b8412f1
commit
80af7d3ccd
1 changed files with 3 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ static void X11Toolkit_InitWindowPixmap(SDL_ToolkitWindowX11 *data) {
|
|||
XDestroyImage(data->image);
|
||||
data->image = NULL;
|
||||
data->shm = false;
|
||||
return;
|
||||
}
|
||||
|
||||
data->shm_info.readOnly = False;
|
||||
|
|
@ -220,6 +221,7 @@ static void X11Toolkit_InitWindowPixmap(SDL_ToolkitWindowX11 *data) {
|
|||
XDestroyImage(data->image);
|
||||
data->shm = false;
|
||||
data->image = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
g_shm_error = False;
|
||||
|
|
@ -233,6 +235,7 @@ static void X11Toolkit_InitWindowPixmap(SDL_ToolkitWindowX11 *data) {
|
|||
shmctl(data->shm_info.shmid, IPC_RMID, 0);
|
||||
data->image = NULL;
|
||||
data->shm = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (data->shm_pixmap) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue