summaryrefslogtreecommitdiffstats
path: root/weather/weather.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'weather/weather.cpp')
-rw-r--r--weather/weather.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/weather/weather.cpp b/weather/weather.cpp
index a4edb2a..c77e742 100644
--- a/weather/weather.cpp
+++ b/weather/weather.cpp
@@ -39,7 +39,7 @@ void Weather::onConnected()
WeatherMessage *tmsg = new WeatherMessage();
tmsg->createRequest("subscribe", "weather");
m_mloop->sendMessage(tmsg);
- tmsg->deleteLater();
+ delete tmsg;
}
void Weather::onDisconnected()
@@ -47,7 +47,7 @@ void Weather::onDisconnected()
WeatherMessage *tmsg = new WeatherMessage();
tmsg->createRequest("unsubscribe", "weather");
m_mloop->sendMessage(tmsg);
- tmsg->deleteLater();
+ delete tmsg;
}
void Weather::onMessageReceived(MessageType type, Message *message)