[network-manager-applet/nma-1-2] applet-agent: fix hash element removal



commit 03925dfcda8dde1227d5168f2ab555f6e091526e
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Fri Jun 10 16:23:38 2016 +0200

    applet-agent: fix hash element removal
    
    Fixes the following:
    
    g_hash_table_iter_next: assertion 'ri->version == ri->hash_table->version' failed
    
    (cherry picked from commit a6b086b43f438a94692d654913aeee13bb659072)

 src/applet-agent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-agent.c b/src/applet-agent.c
index 465d44d..a9a8f5c 100644
--- a/src/applet-agent.c
+++ b/src/applet-agent.c
@@ -514,7 +514,7 @@ cancel_get_secrets (NMSecretAgentOld *agent,
                        g_cancellable_cancel (r->cancellable);
 
                        r->get_callback (NM_SECRET_AGENT_OLD (r->agent), r->connection, NULL, error, 
r->callback_data);
-                       g_hash_table_remove (priv->requests, GUINT_TO_POINTER (r->id));
+                       g_hash_table_iter_remove (&iter);
                        g_signal_emit (r->agent, signals[CANCEL_SECRETS], 0, GUINT_TO_POINTER (r->id));
                }
        }


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