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

cpp/capi.cpp: fix ImageProvider leak #88

Merged
merged 1 commit into from
Aug 20, 2014
Merged

Conversation

cookieo9
Copy link
Contributor

GoImageProvider had a memory leak where it got a pointer to a QImage,
and never freed it. Qt already has a refcounting system in place so every
QImage is actually a pointer to pixel data, but it relies on the destructor
for every QImage instance to be called.

GoImageProvider had a memory leak where it got a pointer to a QImage,
and never freed it. Qt already has a refcounting system in place so every
QImage is actually a pointer to pixel data, but it relies on the destructor
for every QImage instance to be called.
niemeyer added a commit that referenced this pull request Aug 20, 2014
Fix ImageProvider data leak in C++ logic.

Fix by Carlos Castillo.
@niemeyer niemeyer merged commit 7b344dd into go-qml:v1 Aug 20, 2014
@cookieo9 cookieo9 deleted the memfix branch August 20, 2014 17:27
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