[gnome-network-displays] nd-wfd-p2p-sink: Fix finalization of cancellable
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-network-displays] nd-wfd-p2p-sink: Fix finalization of cancellable
- Date: Sun, 23 Jan 2022 11:31:58 +0000 (UTC)
commit 3c6a6964cca2d9ef7c66d7a858fd66cc56795beb
Author: Christian Glombek <lorbus fedoraproject org>
Date: Fri Jan 21 18:07:06 2022 +0100
nd-wfd-p2p-sink: Fix finalization of cancellable
The cancellable is otherwise recreated in
`nd_wfd_p2p_sink_sink_stop_stream_int`
src/nd-wfd-p2p-sink.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nd-wfd-p2p-sink.c b/src/nd-wfd-p2p-sink.c
index 133cb63..7690443 100644
--- a/src/nd-wfd-p2p-sink.c
+++ b/src/nd-wfd-p2p-sink.c
@@ -219,11 +219,11 @@ nd_wfd_p2p_sink_finalize (GObject *object)
{
NdWFDP2PSink *sink = ND_WFD_P2P_SINK (object);
+ nd_wfd_p2p_sink_sink_stop_stream_int (sink);
+
g_cancellable_cancel (sink->cancellable);
g_clear_object (&sink->cancellable);
- nd_wfd_p2p_sink_sink_stop_stream_int (sink);
-
g_clear_object (&sink->nm_client);
g_clear_object (&sink->nm_device);
g_clear_object (&sink->nm_peer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]