[virt-tools-list] [virt-viewer 1/2] Remove obsolete use of SpiceChannel:virt-viewer-display object data
Christophe Fergeau
cfergeau at redhat.com
Tue Nov 19 20:54:37 UTC 2013
Commit 0d58d9c72 removed the setting of the
SpiceChannel:virt-viewer-display object data, but there was still a
call to g_object_get_data() trying to use it. Since it's only used to
output a debug log, we can remove this call and fix up the debug log.
---
src/virt-viewer-session-spice.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 4ed4aff..3c9e765 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -775,8 +775,7 @@ virt_viewer_session_spice_channel_destroy(G_GNUC_UNUSED SpiceSession *s,
}
if (SPICE_IS_DISPLAY_CHANNEL(channel)) {
- VirtViewerDisplay *display = g_object_get_data(G_OBJECT(channel), "virt-viewer-display");
- DEBUG_LOG("zap display channel (#%d, %p)", id, display);
+ DEBUG_LOG("zap display channel (#%d)", id);
}
if (SPICE_IS_PLAYBACK_CHANNEL(channel) && self->priv->audio) {
--
1.8.4.2
More information about the virt-tools-list
mailing list