resets fPlayFile once deleted
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28569 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1009,12 +1009,14 @@ RecorderWindow::UpdatePlayFile()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fPlayTrack && fPlayFile)
|
if (fPlayTrack && fPlayFile) {
|
||||||
fPlayFile->ReleaseTrack(fPlayTrack);
|
fPlayFile->ReleaseTrack(fPlayTrack);
|
||||||
if (fPlayFile)
|
|
||||||
delete fPlayFile;
|
|
||||||
fPlayTrack = NULL;
|
fPlayTrack = NULL;
|
||||||
|
}
|
||||||
|
if (fPlayFile) {
|
||||||
|
delete fPlayFile;
|
||||||
fPlayFile = NULL;
|
fPlayFile = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
status_t err;
|
status_t err;
|
||||||
BEntry& entry = pItem->Entry();
|
BEntry& entry = pItem->Entry();
|
||||||
@@ -1024,6 +1026,7 @@ RecorderWindow::UpdatePlayFile()
|
|||||||
if ((err = fPlayFile->InitCheck()) < B_OK) {
|
if ((err = fPlayFile->InitCheck()) < B_OK) {
|
||||||
ErrorAlert("get the file to play", err);
|
ErrorAlert("get the file to play", err);
|
||||||
delete fPlayFile;
|
delete fPlayFile;
|
||||||
|
fPlayFile = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user