unload textures

hello pandas!

before creating a level in my game, pstats tells me that there are 9 MBs used in graphics memory.
after loading level1, 30 MB are used.
when i destroy level1, there are still 30MB used.
so i tried (before/after removing all the nodes):

texs = render.findAllTextures()
for i in range(texs.getNumTextures()):

but there are still 30MB used.

so my question is:
how can i remove all the unused textures from memory?
i don’t want to have 100MB of unused memory, when playing e.g. level5.


once again, i found out after writing the post above…

tex.releaseAll() does the job

sorry for the useless thread…