[virt-tools-list] [virt-viewer 1/2] Remove obsolete use of SpiceChannel:virt-viewer-display object data
Marc-André Lureau
mlureau at redhat.com
Tue Nov 19 21:19:59 UTC 2013
ack
----- Original Message -----
> 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
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
>
More information about the virt-tools-list
mailing list