simpleTextureDrv.cpp:
103: float* h_data = NULL;
...
108: CUT_SAFE_CALL( cutLoadPGMf(image_path, &h_data, &width, &height));
...
215: free(h_data);
cutil.h:
//! @note If a NULL pointer is passed to this function and it is
//! initialized withing Cutil then cutFree() has to be used to
//! deallocate the memory
Maybe there should be cutFree instead of free?
With free sometimes I’ve got a stack corruption.
That same problem is in simpleTexture sample.