Fix freestyle crash due to freed memory access. The render data needs to be
freed first, and then the scene that it used.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56296 954f8c5b-7b00-dc11-b283-0030488c597c