mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
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@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
bc14aaecd7
commit
6f5681d4f8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user