|
From: Joseph J. S. <jo...@st...> - 2004-07-13 21:33:10
|
At 2:50 PM -0600 7/13/04, Keith Wiley wrote: >The question is, do I have to explicitly free my array, ala: > >delete [] blankTextureArray; Yes. >or does the disposal of the mipmap.image do that because it was somehow >associated with the array in the Q3MemoryStorage_New call? No, it couldn't possibly do that -- Quesa doesn't know whether the array was allocated with new[], or with malloc, or with NewPtr, or with your own custom memory manager, or whatever. Q3MemoryStorage_New makes a Quesa object that wraps a buffer of memory you provide, but it doesn't *own* that buffer -- you do. Best, - Joe -- ,------------------------------------------------------------------. | Joseph J. Strout Check out the Mac Web Directory: | | jo...@st... http://www.macwebdir.com/ | `------------------------------------------------------------------' |