We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the signal is destroyed after the connected functor, then there is a leak.
Example:
std::function<void()> stdFunction = [] {}; auto* testSignal = new fteng::signal<void()>; fteng::connection connection = testSignal->connect(std::move(stdFunction)); delete testSignal;
The leaked object is 'f_type' allocated from the line:
new (&call.object) unique{ new f_type(std::move(functor)) };
inside connect(F&& functor)
The text was updated successfully, but these errors were encountered:
Does #22 fix your problem?
Sorry, something went wrong.
No branches or pull requests
If the signal is destroyed after the connected functor, then there is a leak.
Example:
The leaked object is 'f_type'
allocated from the line:
new (&call.object) unique{ new f_type(std::move(functor)) };
inside connect(F&& functor)
The text was updated successfully, but these errors were encountered: