[gupnp] ServiceProxyAction: Do not leak response string



commit ba2ff1365f822ab9727d7a91ad115fefd8c00dec
Author: Jens Georg <mail jensge org>
Date:   Sun Jan 16 13:52:57 2022 +0100

    ServiceProxyAction: Do not leak response string

 libgupnp/gupnp-service-action.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libgupnp/gupnp-service-action.c b/libgupnp/gupnp-service-action.c
index 3dc71a4..a8c75d1 100644
--- a/libgupnp/gupnp-service-action.c
+++ b/libgupnp/gupnp-service-action.c
@@ -33,6 +33,8 @@ action_dispose (GUPnPServiceAction *action)
         g_object_unref (action->msg);
         g_object_unref (action->context);
         g_object_unref (action->doc);
+        if (action->response_str)
+                g_string_free (action->response_str, TRUE);
 }
 
 void


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