unloadRawDataContainer
Posted: Tue Apr 05, 2005 02:16
The app can allocate resources using loadRawDataContainer, but then gui frees the memory itself. Instead in all the relevant places it now calls the following function before the datacontainer object goes out of scope.
This virtual function defaults to doing nothing, however it can free the memory itself and then set the data ptr to null. This means the app can do what it wants and cegui won't free the memory.
This patch is actually ok I think.
Code: Select all
ResourceProvider::unloadRawDataContainer(RawDataContainer& data)
This virtual function defaults to doing nothing, however it can free the memory itself and then set the data ptr to null. This means the app can do what it wants and cegui won't free the memory.
This patch is actually ok I think.