Skip to content

Commit

Permalink
Merge pull request #42323 from RandomShaper/fixup_gdscript_leaks_fix_3.2
Browse files Browse the repository at this point in the history
Fix GDScript leak avoidance (3.2)
  • Loading branch information
akien-mga authored Sep 25, 2020
2 parents 4bd1df8 + 4cab645 commit 4162df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ Error GDScriptCompiler::_parse_class_level(GDScript *p_script, const GDScriptPar
p_script->native = native;
} break;
case GDScriptDataType::GDSCRIPT: {
Ref<GDScript> base = Ref<GDScript>(base_type.script_type);
Ref<GDScript> base = Ref<Script>(base_type.script_type);
p_script->base = base;
p_script->_base = base.ptr();
p_script->member_indices = base->member_indices;
Expand Down

0 comments on commit 4162df4

Please sign in to comment.