[virt-tools-list] [PATCH virt-viewer 1/2] kiosk: remove invalid unref

Marc-André Lureau marcandre.lureau at gmail.com
Mon Jun 16 18:03:48 UTC 2014


This unref doesn't seem to be related to any reference, although it
was probably introduced in the first place to clear the floating ref,
wrongly. See following commit for a working solution.
---
 src/virt-viewer-app.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 956aecb..5dc7697 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -829,7 +829,6 @@ virt_viewer_app_display_added(VirtViewerSession *session G_GNUC_UNUSED,
             if (priv->kiosk) {
                 /* don't show extra monitors that don't fit on client */
                 g_debug("kiosk mode: skip extra monitors that don't fit on client");
-                g_object_unref(display);
                 return;
             }
 
-- 
1.9.3




More information about the virt-tools-list mailing list