[PATCH] Fix removal of variable change notifications
- From: Sven Neumann <s neumann raumfeld com>
- To: gupnp-list gnome org
- Subject: [PATCH] Fix removal of variable change notifications
- Date: Fri, 7 Dec 2012 11:59:00 +0100
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 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.7.10.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]