[gnome-remote-desktop] rdp-fuse-clipboard: Also clear GMutexes on destruction
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp-fuse-clipboard: Also clear GMutexes on destruction
- Date: Wed, 24 Nov 2021 18:04:39 +0000 (UTC)
commit 3e0ed82416e49551ba22e03bf6cc5211cb5a1437
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Thu Nov 18 12:25:31 2021 +0100
rdp-fuse-clipboard: Also clear GMutexes on destruction
src/grd-rdp-fuse-clipboard.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/src/grd-rdp-fuse-clipboard.c b/src/grd-rdp-fuse-clipboard.c
index 9acc9d4..3ff2a43 100644
--- a/src/grd-rdp-fuse-clipboard.c
+++ b/src/grd-rdp-fuse-clipboard.c
@@ -1432,6 +1432,17 @@ grd_rdp_fuse_clipboard_dispose (GObject *object)
G_OBJECT_CLASS (grd_rdp_fuse_clipboard_parent_class)->dispose (object);
}
+static void
+grd_rdp_fuse_clipboard_finalize (GObject *object)
+{
+ GrdRdpFuseClipboard *rdp_fuse_clipboard = GRD_RDP_FUSE_CLIPBOARD (object);
+
+ g_mutex_clear (&rdp_fuse_clipboard->selection_mutex);
+ g_mutex_clear (&rdp_fuse_clipboard->filesystem_mutex);
+
+ G_OBJECT_CLASS (grd_rdp_fuse_clipboard_parent_class)->finalize (object);
+}
+
static void
clip_data_entry_free (gpointer data)
{
@@ -1550,4 +1561,5 @@ grd_rdp_fuse_clipboard_class_init (GrdRdpFuseClipboardClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->dispose = grd_rdp_fuse_clipboard_dispose;
+ object_class->finalize = grd_rdp_fuse_clipboard_finalize;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]