use _delete_link again

Original commit message from CVS:
use _delete_link again
This commit is contained in:
Benjamin Otte 2003-08-17 20:18:58 +00:00
parent 83bfcc03bd
commit a4ccb27cfd

View file

@ -486,8 +486,7 @@ gst_debug_remove_with_compare_func (GCompareFunc func, gpointer data)
continue;
}
g_free (found->data);
new = g_slist_remove_link (new, found);
g_slist_free_1 (found);
new = g_slist_delete_link (new, found);
removals++;
}
/* FIXME: We leak the old list here. See _add_log_function for why. */