DescriptionAvoid storing references to temporary strings in RenameFunction
The RenameFunction constructor is called like this:
void TCompiler::rewriteCSSShader(TIntermNode* root)
{
RenameFunction renamer("main(", "css_main(");
root->traverse(&renamer);
}
So, "main(" and "css_main(" become temporary TStrings, which RenameFunction holds on to. It should copy them instead.
Issue: http://code.google.com/p/angleproject/issues/detail?id=360
Patch Set 1 #
MessagesTotal messages: 3
|