Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ref leak when using Godot getters #88

Merged
merged 1 commit into from
Jan 26, 2018

Conversation

Zylann
Copy link
Collaborator

@Zylann Zylann commented Jan 24, 2018

Fixes #85

@@ -346,7 +346,7 @@ def generate_class_implementation(icalls, used_classes, c):
if is_enum(method["return_type"]):
return_statement += "return (" + remove_enum_prefix(method["return_type"]) + ") "
elif is_reference_type(method["return_type"]):
return_statement += "return Ref<" + strip_name(method["return_type"]) + ">(";
return_statement += "return Ref<" + strip_name(method["return_type"]) + ">::__internal_constructor(";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't use tabs here 😛

Copy link
Collaborator Author

@Zylann Zylann Jan 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duh, I edited this file with QtCreator, which is configured with tabs because Godot AND the CppBindings use tabs...

@Zylann
Copy link
Collaborator Author

Zylann commented Jan 25, 2018

Fixed

@karroffel karroffel merged commit d7d814f into godotengine:master Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants