Function
Vipsmalloc
Declaration [src]
void*
vips_malloc (
VipsObject* object,
size_t size
)
Description [src]
g_malloc() local to object, that is, the memory will be automatically
freed for you when the object is closed. If object is NULL, you need to
free the memory explicitly with g_free().
This function cannot fail. See vips_tracked_malloc() if you are
allocating large amounts of memory.
See also
Parameters
object-
Type:
VipsObjectAllocate memory local to this
VipsObject, orNULL.The argument can be NULL.The data is owned by the caller of the function. size-
Type:
size_tNumber of bytes to allocate.