summaryrefslogtreecommitdiffstats
path: root/client/display_channel.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2011-09-19 09:19:40 +0300
committerYonit Halperin <yhalperi@redhat.com>2011-09-26 12:17:59 +0300
commit010b22cd771b7e81363b4b6521e4265b093fcd25 (patch)
treefb3f26fce8303ed9c8d7b9c1196e3691bd974a11 /client/display_channel.h
parentcad3c585444f940f60c12789f4174f2d32bec70f (diff)
downloadspice-010b22cd771b7e81363b4b6521e4265b093fcd25.tar.gz
spice-010b22cd771b7e81363b4b6521e4265b093fcd25.tar.xz
spice-010b22cd771b7e81363b4b6521e4265b093fcd25.zip
client: display channel - destroy all surfaces on disconnect
Fix not destroying surfaces and other data (e.g., streams) upon disconnection.
Diffstat (limited to 'client/display_channel.h')
-rw-r--r--client/display_channel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/display_channel.h b/client/display_channel.h
index 10e1731f..4b3a6608 100644
--- a/client/display_channel.h
+++ b/client/display_channel.h
@@ -179,6 +179,7 @@ private:
void activate_streams_timer();
void stream_update_request(uint32_t update_time);
void reset_screen();
+ void clear(bool destroy_primary = true);
static void set_clip_rects(const SpiceClip& clip, uint32_t& num_clip_rects, SpiceRect*& clip_rects);