Why there's still ONE element left after g_slist_free () ?



I created a GSList and then free it using g_slist_free (), then I call g_slist_length() and it return 1, surprising!

I thought after g_slist_free (), the GSList should be empty(NULL), why still 1 left?


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