Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2010-09-08 12:25:38 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-09-08 12:25:38 +0400
commit06b1c933b358a986e2e2b2d720cc7afee63ed53b (patch)
tree17e7856332ae9edd90fa8b93425999a71f0dd296 /intern
parentb58f41e1203500d2b54e9ae8a3a07ea66e43671f (diff)
Commit patch [#23685] Cleanup/crashfix for AA using win32 ghost.
Provided by Mitchell Stokes (Moguri)
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index da7a0399f41..33c7a7f15a2 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -207,17 +207,17 @@ GHOST_IWindow* GHOST_SystemWin32::createWindow(
}
else {
// An invalid window could be one that was used to test for AA
- GHOST_Window *other_window = ((GHOST_WindowWin32*)window)->getNextWindow();
-
- delete window;
- window = 0;
+ window = ((GHOST_WindowWin32*)window)->getNextWindow();
// If another window is found, let the wm know about that one, but not the old one
- if (other_window)
- {
- m_windowManager->addWindow(other_window);
- window = other_window;
+ if (window->getValid()) {
+ m_windowManager->addWindow(window);
}
+ else {
+ delete window;
+ window = 0;
+ }
+
}
}
return window;