Paranthesis problem in memory documentation



Hello,

web page has the following in the Description
"
It's important to match g_malloc() (and wrappers such as g_new()) with g_free(), g_slice_alloc() and wrappers such as g_slice_new()) with g_slice_free(), plain malloc() with free(), and (if you're using C++) new with delete and new[] with delete[]. Otherwise bad things can happen, since these allocators may use different memory pools (and new/delete call constructors and destructors). See also g_mem_set_vtable().
"

Looks like
the "(" before and wrappers, 
and
")" after as g_slice_new()
needs to be removed. g_malloc() does not go well with g_slice_free(), please check.

Thanks
Mohan






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