[gnome-remote-desktop] rdp-event-queue: Also clear event_mutex on destruction
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp-event-queue: Also clear event_mutex on destruction
- Date: Wed, 24 Nov 2021 18:04:39 +0000 (UTC)
commit 72c0b4ff53ae53557ea5ed969d27e93301370da9
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Thu Nov 18 12:22:56 2021 +0100
rdp-event-queue: Also clear event_mutex on destruction
src/grd-rdp-event-queue.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/src/grd-rdp-event-queue.c b/src/grd-rdp-event-queue.c
index b18399a..4bc2255 100644
--- a/src/grd-rdp-event-queue.c
+++ b/src/grd-rdp-event-queue.c
@@ -389,6 +389,16 @@ grd_rdp_event_queue_dispose (GObject *object)
G_OBJECT_CLASS (grd_rdp_event_queue_parent_class)->dispose (object);
}
+static void
+grd_rdp_event_queue_finalize (GObject *object)
+{
+ GrdRdpEventQueue *rdp_event_queue = GRD_RDP_EVENT_QUEUE (object);
+
+ g_mutex_clear (&rdp_event_queue->event_mutex);
+
+ G_OBJECT_CLASS (grd_rdp_event_queue_parent_class)->finalize (object);
+}
+
static void
grd_rdp_event_queue_init (GrdRdpEventQueue *rdp_event_queue)
{
@@ -406,4 +416,5 @@ grd_rdp_event_queue_class_init (GrdRdpEventQueueClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->dispose = grd_rdp_event_queue_dispose;
+ object_class->finalize = grd_rdp_event_queue_finalize;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]