[gupnp] Fix removal of variable change notifications



commit a5f9da3b520de6dcccead085811070e5adaf3f60
Author: Sven Neumann <s neumann raumfeld com>
Date:   Fri Dec 7 11:59:00 2012 +0100

    Fix removal of variable change notifications
    
    Need to pass the key to g_hash_table_remove(), not the
    value. This fixes crashes in emit_notification().
    
    Signed-off-by: Sven Neumann <s neumann raumfeld com>
    Reviewed-by: Henry HÃgelow <h hoegelow raumfeld com>

 libgupnp/gupnp-service-proxy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 04811ca..4aef8d2 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -1567,7 +1567,7 @@ gupnp_service_proxy_remove_notify (GUPnPServiceProxy              *proxy,
                         if (data->callbacks == NULL) {
                                 /* No callbacks left: Remove from hash */
                                 g_hash_table_remove (proxy->priv->notify_hash,
-                                                     data);
+                                                     variable);
                         }
 
                         found = TRUE;



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