Skip to content

Fix unreflective#12897

Open
barisyild wants to merge 2 commits into
HaxeFoundation:developmentfrom
barisyild:fix-unreflective
Open

Fix unreflective#12897
barisyild wants to merge 2 commits into
HaxeFoundation:developmentfrom
barisyild:fix-unreflective

Conversation

@barisyild
Copy link
Copy Markdown
Contributor

Fixes #12437

callable_name |> output
else
Printf.sprintf
"%s %s::%s_dyn() { return new %s(); }\n\n"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is new overloaded here? If not then it will cause a memory leak because there is no delete.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There shouldn't be any leaks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"%s %s::%s_dyn() { return new %s(this); }\n\n"

It doesn't look that different.

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.

method_dyn missing when using @:unreflective and @:nativeGen with listener callback

2 participants