[gupnp] ServiceProxyAction: Do not leak response



commit 77b2eee627c7eb19316deebaa54513ca89497e2e
Author: Jens Georg <mail jensge org>
Date:   Wed Jan 5 16:48:19 2022 +0100

    ServiceProxyAction: Do not leak response

 libgupnp/gupnp-service-proxy-action.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libgupnp/gupnp-service-proxy-action.c b/libgupnp/gupnp-service-proxy-action.c
index aeb90cd..464f74a 100644
--- a/libgupnp/gupnp-service-proxy-action.c
+++ b/libgupnp/gupnp-service-proxy-action.c
@@ -253,6 +253,8 @@ action_dispose (GUPnPServiceProxyAction *action)
         }
         g_hash_table_destroy (action->arg_map);
         g_ptr_array_unref (action->args);
+        g_clear_pointer (&action->response, g_bytes_unref);
+
         g_free (action->name);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]