From 3a2ada66897af933df6fc83998052952c4f3de00 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Tue, 12 Feb 2019 14:52:01 -0800 Subject: [PATCH] Fix crash --- src/websockets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/websockets.cpp b/src/websockets.cpp index 0bf7dbd..a0b2ba0 100644 --- a/src/websockets.cpp +++ b/src/websockets.cpp @@ -85,7 +85,9 @@ WormholeClient::~WormholeClient() { m_webSocket->close(); } - timer->stop(); + if (timer) + timer->stop(); + delete timer; }