Re: g_ptr_array_free



Hi,

> In a my prg I have used 'g_ptr_array_free (an_array_list,TRUE)'. This array
> contains pointers to structs. This structs are allocated with 'g_new0 (my_struct,
> 1)'. If I set parameter TRUE in 'g_ptr_array_free', these structs are automatically
> deallocated?

No. Just array->pdata is freed in case free_segment is TRUE. Otherwise
it is returned.

Ciao,
Sebastian
-- 
Sebastian Wilhelmi                 |            här ovanför alla molnen
mailto:seppi seppi de              |     är himmlen så förunderligt blå
http://seppi.de                    |




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