unloadRawDataContainer

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
gcarlton
Just can't stay away
Just can't stay away
Posts: 149
Joined: Wed Jan 12, 2005 12:06

unloadRawDataContainer

Postby gcarlton » 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.

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. :)

Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests