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

Memory leak in panel example? #72

Open
rr-tom-noble opened this issue Jul 16, 2021 · 1 comment
Open

Memory leak in panel example? #72

rr-tom-noble opened this issue Jul 16, 2021 · 1 comment

Comments

@rr-tom-noble
Copy link

Hello,

Thanks for the tutorials! They've been super helpful for me trying to learn how to create a plugin. I've noticed some code in the panel tutorial which I believe may be causing a memory leak e.g. here. The class has no destructor, so it seems like we're dynamically allocating memory and never freeing it.

It's been a while since I've used Qt, so unsure if it would be handling the memory management under the hood? Figured it'd be a good opportunity to learn either way 😄

@5730289021-NN
Copy link

According to Panel Plugin Tututorial
and my understanding, 'this' that passed as an argument will cause the QTimer to be deleted automatically after the QObject destructor is called.

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

No branches or pull requests

2 participants