mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
try to fix segfault with --enable-cleanup
This commit is contained in:
@@ -118,17 +118,24 @@ CMoviePlayerGui::CMoviePlayerGui()
|
||||
|
||||
CMoviePlayerGui::~CMoviePlayerGui()
|
||||
{
|
||||
//playback->Close();
|
||||
if (this == instance_mp)
|
||||
stopPlayBack();
|
||||
delete moviebrowser;
|
||||
moviebrowser = NULL;
|
||||
delete filebrowser;
|
||||
filebrowser = NULL;
|
||||
delete bookmarkmanager;
|
||||
bookmarkmanager = NULL;
|
||||
delete playback;
|
||||
playback = NULL;
|
||||
if(moviebrowser){
|
||||
delete moviebrowser;
|
||||
moviebrowser = NULL;
|
||||
}
|
||||
if(filebrowser){
|
||||
delete filebrowser;
|
||||
filebrowser = NULL;
|
||||
}
|
||||
if(bookmarkmanager){
|
||||
delete bookmarkmanager;
|
||||
bookmarkmanager = NULL;
|
||||
}
|
||||
if(playback){
|
||||
delete playback;
|
||||
playback = NULL;
|
||||
}
|
||||
if (this == instance_mp) {
|
||||
delete instance_bg;
|
||||
instance_bg = NULL;
|
||||
|
Reference in New Issue
Block a user