diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-05-04 16:37:36 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-05-04 17:22:44 +0100 |
commit | f34edd09cbde51e3bd8517bcdc93575b0a11a2cb (patch) | |
tree | f5a2cf6b0d55e8b0c35de77ec3fe7337852ae46b /src/virt-viewer-display-spice.c | |
parent | d0d226ca8fddc41ca7b91ea3e18e551a06f1fc00 (diff) | |
download | virt-viewer-f34edd09cbde51e3bd8517bcdc93575b0a11a2cb.tar.gz virt-viewer-f34edd09cbde51e3bd8517bcdc93575b0a11a2cb.tar.xz virt-viewer-f34edd09cbde51e3bd8517bcdc93575b0a11a2cb.zip |
Ensure windows are destroyed when display closes
When running virt-viewer with the --reconnect argument, when
the session closes, the VirtViewerWindow instances were being
freed, but not the GtkWindow itself. So the orphaned window
stayed around doing nothing. The GtkBuilder instance was also
leaked.
Fix these two leaks & also add some debugging to help future
troubleshooting
Diffstat (limited to 'src/virt-viewer-display-spice.c')
-rw-r--r-- | src/virt-viewer-display-spice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer-display-spice.c b/src/virt-viewer-display-spice.c index 985e116..f7bb26d 100644 --- a/src/virt-viewer-display-spice.c +++ b/src/virt-viewer-display-spice.c @@ -110,7 +110,7 @@ display_mark(SpiceChannel *channel G_GNUC_UNUSED, gint mark, VirtViewerDisplay *display) { - DEBUG_LOG("display mark %d", mark); + DEBUG_LOG("Toggle monitor visibility %p %d", channel, mark); virt_viewer_display_set_show_hint(display, mark); } |