Re: Mixing of memory allocation methods with application

2008-05-26 Thread Andreas Stricker
Andreas Stricker schrieb: > Micah Carrick schrieb: > I would prefer the later one. The first one can easily lead to errors, > especially if the glib allocators don't use libc malloc implementation > sometime. I should have looked at a recent glib documentation, where it is clearly defined that the

Re: Mixing of memory allocation methods with application

2008-05-26 Thread Andreas Stricker
Micah Carrick schrieb: > When I am working with a structure from this library, I should be using > those same functions on those structures right? Because *my* parts of my > application (elsewhere) are using the g_ functions. I won't mix them, depending on circumstance, see below. > For exa

Mixing of memory allocation methods with application

2008-05-25 Thread Micah Carrick
I have a GTK application which is working with a C library (Libmtp). This C library uses standard C functions such as free, malloc, strndup, etc. When I am working with a structure from this library, I should be using those same functions on those structures right? Because *my* parts of my appl