Skip to content

Commit

Permalink
MythMainWindow: Cleanup properly if OpenGL init fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Jan 17, 2019
1 parent 13e6b85 commit c4bab19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythui/mythmainwindow.cpp
Expand Up @@ -1071,6 +1071,10 @@ void MythMainWindow::Init(QString forcedpainter, bool mayReInit)
"hardware/drivers. Falling back to Qt painter.");
d->render->DecrRef();
d->render = nullptr;
delete d->painter;
delete d->paintwin;
d->painter = nullptr;
d->paintwin = nullptr;
}
}
}
Expand Down

0 comments on commit c4bab19

Please sign in to comment.