[Spice-devel] [PATCH 3/3] fixed unhandled destroy screen in Application:restore_screens_size
Yonit Halperin
yhalperi at redhat.com
Sun Jun 27 02:45:13 PDT 2010
---
client/application.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/application.cpp b/client/application.cpp
index f32943e..6b1ce65 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -1450,7 +1450,7 @@ void Application::enter_full_screen()
void Application::restore_screens_size()
{
for (int i = 0; i < (int)_screens.size(); i++) {
- if (_screens[i]->is_size_locked()) {
+ if (!_screens[i] || _screens[i]->is_size_locked()) {
continue;
}
_screens[i]->resize(SCREEN_INIT_WIDTH, SCREEN_INIT_HEIGHT);
--
1.6.6.1
More information about the Spice-devel
mailing list