Browse Source

x11: Fix xsettings pointer not being reset in X11_QuitXsettings

Sam Lantinga 1 tháng trước cách đây
mục cha
commit
91be1b054a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/video/x11/SDL_x11settings.c

+ 1 - 0
src/video/x11/SDL_x11settings.c

@@ -67,6 +67,7 @@ void X11_QuitXsettings(SDL_VideoDevice *_this)
 
     if (xsettings_data->xsettings) {
         xsettings_client_destroy(xsettings_data->xsettings);
+        xsettings_data->xsettings = NULL;
     }
 }