On 07/04/11 21:42, olafbuddenha...@gmx.net wrote: > I don't know how g_free() behaves -- but if it's the same as normal > free(), you don't need the conditional: free(NULL) is a no-op by > definition.
g_free is null-safe too. I thought free(NULL) wasn't safe and led to crashes, but you're right according to free(3). Emilio