HTTP media IO: fix another case of crash.

This commit is contained in:
Adrien Destugues
2016-10-31 19:27:51 +01:00
parent 98e33bf69a
commit b2fa4e171d
@@ -132,11 +132,14 @@ HTTPMediaIO::~HTTPMediaIO()
{
CALLED();
fReq->Stop();
status_t status;
wait_for_thread(fReqThread, &status);
if (fReq != NULL)
{
fReq->Stop();
status_t status;
wait_for_thread(fReqThread, &status);
delete fReq;
delete fReq;
}
}