[wing] wingiocpoutputstream: fix memory leak on wing_iocp_output_stream_write_async
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing] wingiocpoutputstream: fix memory leak on wing_iocp_output_stream_write_async
- Date: Tue, 9 Mar 2021 08:31:31 +0000 (UTC)
commit 16be4727fe8e70b7ab3c590f41c3719fba2b8895
Author: Silvio Lazzeretti <silviola amazon com>
Date: Mon Mar 1 18:05:22 2021 +0100
wingiocpoutputstream: fix memory leak on wing_iocp_output_stream_write_async
wing/wingiocpoutputstream.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/wing/wingiocpoutputstream.c b/wing/wingiocpoutputstream.c
index e88525c..b14d72f 100644
--- a/wing/wingiocpoutputstream.c
+++ b/wing/wingiocpoutputstream.c
@@ -224,7 +224,10 @@ wing_iocp_output_stream_write_async (GOutputStream *stream,
g_task_set_priority (task, io_priority);
if (g_task_return_error_if_cancelled (task))
- return;
+ {
+ g_object_unref (task);
+ return;
+ }
if (priv->handle == INVALID_HANDLE_VALUE)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]