Commit 86d29a58 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Plug leak.

2002-09-19  Morten Welinder  <terra@diku.dk>

	* src/dependent.c (micro_hash_remove): Plug leak.
parent d53fcb82
2002-09-19 Morten Welinder <terra@diku.dk>
* src/dependent.c (micro_hash_remove): Plug leak.
2002-09-17 Zbigniew Chyla <cyba@gnome.pl>
* src/plugin-loader-module.c
......
2002-09-19 Morten Welinder <terra@diku.dk>
* src/dependent.c (micro_hash_remove): Plug leak.
2002-09-17 Zbigniew Chyla <cyba@gnome.pl>
* src/plugin-loader-module.c
......
2002-09-19 Morten Welinder <terra@diku.dk>
* src/dependent.c (micro_hash_remove): Plug leak.
2002-09-17 Zbigniew Chyla <cyba@gnome.pl>
* src/plugin-loader-module.c
......
......@@ -383,7 +383,9 @@ micro_hash_remove (MicroHash *hash_table, gpointer key)
for (; *head != NULL ; head = &((*head)->next))
if ((*head)->data == key) {
*head = (*head)->next;
GSList *next = (*head)->next;
g_slist_free_1 (*head);
*head = next;
hash_table->num_elements--;
MICRO_HASH_RESIZE (hash_table);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment