[Spice-commits] gtk/spice-widget.c

Christophe Fergau teuf at kemper.freedesktop.org
Wed Nov 20 07:05:13 PST 2013


 gtk/spice-widget.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 67b4ab8820ef7145026e450d7c594e37fa78b3cf
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Wed Nov 20 14:44:59 2013 +0100

    Fix 'monitors' leak in update_monitor_area()
    
    This function has an early return where we fail to unref the 'monitors'
    array.

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 0447dda..4e76648 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -302,6 +302,7 @@ static void update_monitor_area(SpiceDisplay *display)
         set_monitor_ready(display, false);
         if (spice_channel_test_capability(d->display, SPICE_DISPLAY_CAP_MONITORS_CONFIG)) {
             SPICE_DEBUG("waiting until MonitorsConfig is received");
+            g_clear_pointer(&monitors, g_array_unref);
             return;
         }
         goto whole;


More information about the Spice-commits mailing list