mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-02-04 04:58:16 +00:00
Clear cache and glz dictionnary on switch-host
If we don't clear the glz dictionnary, this might lead to corrupted/invalid dictionnary and invalid memory allocation due unbounded increase of dictionnary size
This commit is contained in:
parent
1ee71103c5
commit
ff7994ca59
@ -1122,9 +1122,9 @@ gboolean spice_session_get_client_provided_socket(SpiceSession *session)
|
||||
}
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void spice_session_switching_disconnect(SpiceSession *session)
|
||||
void spice_session_switching_disconnect(SpiceSession *self)
|
||||
{
|
||||
SpiceSessionPrivate *s = SPICE_SESSION_GET_PRIVATE(session);
|
||||
SpiceSessionPrivate *s = SPICE_SESSION_GET_PRIVATE(self);
|
||||
struct channel *item;
|
||||
RingItem *ring, *next;
|
||||
|
||||
@ -1141,6 +1141,10 @@ void spice_session_switching_disconnect(SpiceSession *session)
|
||||
}
|
||||
|
||||
g_warn_if_fail(!ring_is_empty(&s->channels)); /* ring_get_length() == 1 */
|
||||
|
||||
spice_session_palettes_clear(self);
|
||||
spice_session_images_clear(self);
|
||||
glz_decoder_window_clear(s->glz_window);
|
||||
}
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
|
||||
Loading…
Reference in New Issue
Block a user