[Spice-commits] server/red-stream-device.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 13 08:55:44 UTC 2018
server/red-stream-device.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 6f5681d4f883b892bbd70fa88e8298e9dfb6cb70
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Jul 11 16:32:44 2018 +0100
red-stream-device: Fix leaks in dispose and finalize chaining parent
dispose and finalize methods have to call parent relative
cleanup method to avoid leaking resources.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/red-stream-device.c b/server/red-stream-device.c
index 6a2b6a73..fafcee5a 100644
--- a/server/red-stream-device.c
+++ b/server/red-stream-device.c
@@ -586,6 +586,8 @@ stream_device_dispose(GObject *object)
red_channel_destroy(RED_CHANNEL(dev->cursor_channel));
dev->cursor_channel = NULL;
}
+
+ G_OBJECT_CLASS(stream_device_parent_class)->dispose(object);
}
static void
@@ -597,6 +599,8 @@ stream_device_finalize(GObject *object)
dev->msg = NULL;
dev->msg_len = 0;
dev->msg_pos = 0;
+
+ G_OBJECT_CLASS(stream_device_parent_class)->finalize(object);
}
void
More information about the Spice-commits
mailing list