fix for crash reading from a freed scene when exiting blender.

This commit is contained in:
Campbell Barton 2013-06-27 06:16:31 +00:00
parent d574fb95ad
commit 929bba2bac

@ -411,6 +411,7 @@ void RE_FreeRender(Render *re)
/* main dbase can already be invalid now, some database-free code checks it */
re->main = NULL;
re->scene = NULL;
RE_Database_Free(re); /* view render can still have full database */
free_sample_tables(re);