Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Memory Leak

This topic is 6914 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It is camera keys for animation.
To free this:

cam = PR_GetFirstCamera();
if (cam != NULL)
if (cam->cam_keys != NULL)
PR_free (cam->cam_keys);
PR_DeleteCamera (cam);

I missed freeing the keys in PR_DeleteCamera. Also note if you are loading more than one camera from .PRO files, you will need to loop until PR_GetFirstCamera returns NULL.

Share this post

Link to post
Share on other sites
Would anyone help me to clear the memory leak by Power Render 3.0

I have already use PR_LoadPro & PR_FreeObject in pair. But there is still something not deallocated. The memory manager report me , block not freed in "Prlfile.c Line 820".

Would anyone who have 3.0 source code , help me to find what this lines about ?

[This message has been edited by Balon (edited November 19, 1999).]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!