slightly improved da thing (at least it doesn't crash anymore)
fixed some memory leaks in buffer allocation, improved memory handling in pipeline (buffers should be freed when pipeline re-creates passes)
Merge branch 'develop' into feature/concurrency_problems_fix