Upgrading project from 5.0.3 to 5.1 results in a memory leak

You can try converting your project again using the latest 5.1 release. Our project is stable now with no more dodgy shaders after updating our engine verison.