[spice-gtk v2 2/2] spice-widget: fix leak of boxed type cursor-shape

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Victor Toso <me@xxxxxxxxxxxxxx>

No valgrind on this one but a leak similar to previous patch.
This one was introduced in e691954be459087

Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx>
---
 src/spice-widget.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/spice-widget.c b/src/spice-widget.c
index 7732f5f..8a6b5ab 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -2992,6 +2992,7 @@ static void channel_new(SpiceSession *s, SpiceChannel *channel, gpointer data)
 
         g_object_get(G_OBJECT(channel), "cursor", &cursor_shape, NULL);
         if (cursor_shape != NULL) {
+            g_boxed_free(SPICE_TYPE_CURSOR_SHAPE, cursor_shape);
             cursor_set(d->cursor, NULL, display);
         }
         return;
-- 
2.16.2

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]