Fix AulCompiler leaking C4Strings with variable names

ipv6
Lukas Werling 2016-12-24 00:13:02 +01:00
parent 61962fe70a
commit 52626fe021
1 changed files with 1 additions and 1 deletions

View File

@ -2079,7 +2079,7 @@ void C4AulCompiler::ConstantResolver::visit(const ::aul::ast::VarDecl *n)
for (const auto &dec : n->decls)
{
const char *cname = dec.name.c_str();
C4String *name = ::Strings.RegString(cname);
C4RefCntPointer<C4String> name = ::Strings.RegString(cname);
switch (n->scope)
{
case ::aul::ast::VarDecl::Scope::Func: