summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2010-06-27 12:45:13 +0300
committerAlexander Larsson <alexl@redhat.com>2010-06-29 13:59:46 +0200
commit270a1e6df378702be9ed44d5f66ea9e0b7de91e3 (patch)
treec281ff6104b53bd68c6f4b15b762fdd42e98c487 /client
parent3ca28ddf284acb9f1a90e3a1dbf020754db820b8 (diff)
downloadspice-270a1e6df378702be9ed44d5f66ea9e0b7de91e3.tar.gz
spice-270a1e6df378702be9ed44d5f66ea9e0b7de91e3.tar.xz
spice-270a1e6df378702be9ed44d5f66ea9e0b7de91e3.zip
fixed unhandled destroy screen in Application:restore_screens_size
Diffstat (limited to 'client')
-rw-r--r--client/application.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/application.cpp b/client/application.cpp
index 8d2c34fe..482215c0 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -1449,7 +1449,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);