Skip to content

Commit 097754c

Browse files
committed
I think this is more correct
1 parent 68ec22c commit 097754c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/mainWindow/mainWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ MainWindow::MainWindow(Environment& environment) :
107107
}
108108

109109
MainWindow::~MainWindow() {
110-
if (sdlWindow) App::get().deregisterWindow(*sdlWindow);
111110
if (rmlContext) Rml::RemoveContext(rmlContext->GetName());
112111
if (windowId != 0) MainRenderer::get().deregisterWindow(windowId);
112+
if (sdlWindow) App::get().deregisterWindow(*sdlWindow);
113113
}
114114

115115
bool MainWindow::recieveEvent(SDL_Event& event) {

0 commit comments

Comments
 (0)