diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2013-11-20 14:44:59 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-11-20 16:00:51 +0100 |
commit | 67b4ab8820ef7145026e450d7c594e37fa78b3cf (patch) | |
tree | f8c1edfd2567f343ef0e9281f4ff886c9c6b4048 | |
parent | 296c8e31101b6e7a4515a7cf6a17b05ad25f7c6c (diff) |
Fix 'monitors' leak in update_monitor_area()
This function has an early return where we fail to unref the 'monitors'
array.
-rw-r--r-- | gtk/spice-widget.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |