XVisualInfo is not released by get_gl_info_egl
Details
Details
- Reviewers
graesslin - Commits
- R102:27e0c81db912: Do not leak XVisualInfo (X11 EGL path)
Leak check with valgrind shows that visinfo is no longer leaking.
Diff Detail
Diff Detail
- Repository
- R102 KInfoCenter
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
Would it make sense to wrap that in a QScopedPointer with a custom deleter that calls XFree? This way one does not need to remember calling it whenever the function is exited.
Comment Actions
An alternative could be to use QScopedPointer or std::unique_ptr with XFree as the deleter.