]>
Commit | Line | Data |
---|---|---|
ba160b6f PS |
1 | removal of a list element frees only one memory block instead of all. |
2 | ||
3 | --- glib-1.2.10/gslist.c.orig 2000-08-09 20:12:31.000000000 +0200 | |
4 | +++ glib-1.2.10/gslist.c 2006-05-02 22:08:00.000000000 +0200 | |
5 | @@ -278,7 +278,7 @@ g_slist_remove (GSList *list, | |
6 | list = list->next; | |
7 | ||
8 | tmp->next = NULL; | |
9 | - g_slist_free (tmp); | |
10 | + g_slist_free_1 (tmp); | |
11 | ||
12 | break; | |
13 | } |