summaryrefslogtreecommitdiff
path: root/endless
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-01-18 16:39:09 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-01-18 16:39:09 +0000
commit4274db0fa786a4ec8508c001589313619aed2956 (patch)
tree456fb2a9fb16423d18fd4f4da2ec053e48553b36 /endless
parentb9e10fd6096f5a7c577b957c77733431d6b759eb (diff)
Do not attempt to remove probes twice
We only remove probes when unloading state, so we don't need to remove the probe from the state itself.
Diffstat (limited to 'endless')
-rw-r--r--endless/eosprofile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/endless/eosprofile.c b/endless/eosprofile.c
index 1ae0015..3cf0881 100644
--- a/endless/eosprofile.c
+++ b/endless/eosprofile.c
@@ -148,9 +148,9 @@ eos_profile_probe_destroy (gpointer data)
{
EosProfileProbe *probe = data;
- g_hash_table_remove (profile_state->probes, probe->name);
+ if (probe->samples != NULL)
+ g_array_unref (probe->samples);
- g_array_unref (probe->samples);
g_free (probe->name);
g_free (probe->function);
g_free (probe->file);