summaryrefslogtreecommitdiffstats
path: root/mediaplayer/mediaplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mediaplayer/mediaplayer.cpp')
-rw-r--r--mediaplayer/mediaplayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mediaplayer/mediaplayer.cpp b/mediaplayer/mediaplayer.cpp
index 384badf..bf0b4bc 100644
--- a/mediaplayer/mediaplayer.cpp
+++ b/mediaplayer/mediaplayer.cpp
@@ -76,7 +76,7 @@ void Mediaplayer::control(QString control, QJsonObject parameter)
tmsg->createRequest("controls", parameter);
m_mloop->sendMessage(tmsg);
- tmsg->deleteLater();
+ delete tmsg;
}
@@ -166,7 +166,7 @@ void Mediaplayer::onConnected()
parameter.insert("value", eventIterator.next());
tmsg->createRequest("subscribe", parameter);
m_mloop->sendMessage(tmsg);
- tmsg->deleteLater();
+ delete tmsg;
}
}
@@ -181,7 +181,7 @@ void Mediaplayer::onDisconnected()
parameter.insert("value", eventIterator.next());
tmsg->createRequest("unsubscribe", parameter);
m_mloop->sendMessage(tmsg);
- tmsg->deleteLater();
+ delete tmsg;
}
}