mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-06 22:24:17 +02:00
Fix segmentation fault when stopping stream
This commit is contained in:
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Fixed metadata overwrite bug where valid ICY stream metadata was being cleared.
|
- Fixed metadata overwrite bug where valid ICY stream metadata was being cleared.
|
||||||
- Fixed DBus crash (segmentation fault) under KDE Plasma Wayland by making notification requests asynchronous.
|
- Fixed DBus crash (segmentation fault) under KDE Plasma Wayland by making notification requests asynchronous.
|
||||||
- Fixed regex parser bug with stream titles containing apostrophes.
|
- Fixed regex parser bug with stream titles containing apostrophes.
|
||||||
|
- Fixed crash (segmentation fault) in IcyReader when changing or stopping streams.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -40,9 +40,10 @@ void IcyReader::start(const QString &url)
|
|||||||
void IcyReader::stop()
|
void IcyReader::stop()
|
||||||
{
|
{
|
||||||
if (m_reply) {
|
if (m_reply) {
|
||||||
m_reply->abort();
|
QNetworkReply *reply = m_reply;
|
||||||
m_reply->deleteLater();
|
|
||||||
m_reply = nullptr;
|
m_reply = nullptr;
|
||||||
|
reply->abort();
|
||||||
|
reply->deleteLater();
|
||||||
}
|
}
|
||||||
m_state = ReadingAudio;
|
m_state = ReadingAudio;
|
||||||
m_metaInt = 0;
|
m_metaInt = 0;
|
||||||
@@ -106,8 +107,9 @@ void IcyReader::onReadyRead()
|
|||||||
void IcyReader::onFinished()
|
void IcyReader::onFinished()
|
||||||
{
|
{
|
||||||
if (m_reply) {
|
if (m_reply) {
|
||||||
m_reply->deleteLater();
|
QNetworkReply *reply = m_reply;
|
||||||
m_reply = nullptr;
|
m_reply = nullptr;
|
||||||
|
reply->deleteLater();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user