bieh/clustergl — pull request #2 by oberling (2012-05-28 22:44:13+00:00)
Title: finally fixed that nasty memory leak :)

Hey Paul,
After some hours of intense code starring and trying to understand the magic :) i finally found that nasty memory leak in the renderer. I have commented the main parts.
The problem was, that thisFrame turned from a vector only referencing elements of the static array in NetSrvModule into one that also referenced dynamically created instructions (when copying some repeated instructions in DeltaEncodeModules process method). Those copied instructions where never deleted afterwards. I fixed it now so that on the renderer site we allways deal with a vector containing only dynamic elements (that have to be deleted then in main.cpp) after the NetSrvModule. Therefor i also had to fully deep copy the Instructions.

Hope you like it.

Btw. i'm pretty excited that you keep up with clustergl. Thanks for that.

Regards
Stephan