Skip to content

Commit

Permalink
MythMainWindow: Ensure the painter and renderer are deleted on exit
Browse files Browse the repository at this point in the history
- this keeps apitrace happy by ensuring we don't 'leak' OpenGL resources
  • Loading branch information
mark-kendall committed Jan 30, 2019
1 parent 9e0332a commit 3461d6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmythui/mythmainwindow.cpp
Expand Up @@ -568,8 +568,11 @@ MythMainWindow::~MythMainWindow()

delete d->NC;

delete d;
delete d->painter;
if (d->render)
d->render->DecrRef();

delete d;
}

MythPainter *MythMainWindow::GetCurrentPainter(void)
Expand Down

0 comments on commit 3461d6c

Please sign in to comment.