[wing] wingnamedpipelistener: minor cleanup
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing] wingnamedpipelistener: minor cleanup
- Date: Mon, 23 Aug 2021 09:11:08 +0000 (UTC)
commit e4078d1dbdd311ee43a2ba5d80725d7c7c588cce
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Mon Aug 23 11:10:43 2021 +0200
wingnamedpipelistener: minor cleanup
wing/wingnamedpipelistener.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/wing/wingnamedpipelistener.c b/wing/wingnamedpipelistener.c
index bf27cf0..4747992 100644
--- a/wing/wingnamedpipelistener.c
+++ b/wing/wingnamedpipelistener.c
@@ -633,10 +633,7 @@ wing_named_pipe_listener_accept (WingNamedPipeListener *listener,
/* Put another pipe to listen so more clients can already connect */
if (!create_pipe_from_pipe_data (pipe_data, FALSE, error))
- {
- g_object_unref (connection);
- connection = NULL;
- }
+ g_clear_object (&connection);
}
return connection;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]