mirror of https://github.com/buggins/dlangui.git
SDL_DestroyWindow() was called twice. First in close window code, second on window destructor.
This commit is contained in:
parent
9184303b05
commit
a8db8a6e5a
|
@ -1235,7 +1235,6 @@ class SDLPlatform : Platform {
|
||||||
if (windowToClose.windowId in _windowMap) {
|
if (windowToClose.windowId in _windowMap) {
|
||||||
Log.i("Platform.closeWindow()");
|
Log.i("Platform.closeWindow()");
|
||||||
_windowMap.remove(windowToClose.windowId);
|
_windowMap.remove(windowToClose.windowId);
|
||||||
SDL_DestroyWindow(windowToClose._win);
|
|
||||||
Log.i("windowMap.length=", _windowMap.length);
|
Log.i("windowMap.length=", _windowMap.length);
|
||||||
destroy(windowToClose);
|
destroy(windowToClose);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue