[gupnp/wip/phako/reusable-service-action: 6/7] ServiceProxyAction: Clear old message




commit 3184a8941977978185c1beb4765d0b6b19d4d16a
Author: Jens Georg <mail jensge org>
Date:   Sat May 29 02:03:25 2021 +0200

    ServiceProxyAction: Clear old message

 libgupnp/gupnp-service-proxy.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index a39b005..7b6afd8 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -677,6 +677,7 @@ prepare_action_msg (GUPnPServiceProxy *proxy,
         local_control_url = gupnp_context_rewrite_uri (context, control_url);
         g_free (control_url);
 
+        g_clear_object (&action->msg);
         action->msg = soup_message_new (SOUP_METHOD_POST, local_control_url);
         g_free (local_control_url);
 


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