diff --git a/src/add-ons/media/plugins/http_streamer/HTTPMediaIO.cpp b/src/add-ons/media/plugins/http_streamer/HTTPMediaIO.cpp index 837e9a89f5..ddb8a68028 100644 --- a/src/add-ons/media/plugins/http_streamer/HTTPMediaIO.cpp +++ b/src/add-ons/media/plugins/http_streamer/HTTPMediaIO.cpp @@ -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; + } }