File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ static void X11Toolkit_InitWindowPixmap(SDL_ToolkitWindowX11 *data) {
212212 XDestroyImage (data -> image );
213213 data -> image = NULL ;
214214 data -> shm = false;
215+ return ;
215216 }
216217
217218 data -> shm_info .readOnly = False ;
@@ -220,6 +221,7 @@ static void X11Toolkit_InitWindowPixmap(SDL_ToolkitWindowX11 *data) {
220221 XDestroyImage (data -> image );
221222 data -> shm = false;
222223 data -> image = NULL ;
224+ return ;
223225 }
224226
225227 g_shm_error = False ;
@@ -233,6 +235,7 @@ static void X11Toolkit_InitWindowPixmap(SDL_ToolkitWindowX11 *data) {
233235 shmctl (data -> shm_info .shmid , IPC_RMID , 0 );
234236 data -> image = NULL ;
235237 data -> shm = false;
238+ return ;
236239 }
237240
238241 if (data -> shm_pixmap ) {
You can’t perform that action at this time.
0 commit comments