blob: c079809f0c607eb473554f59dba757ec80a6d24e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From cb2c91f06bc9247520474372d163bd0520f4db42 Mon Sep 17 00:00:00 2001
From: Gun Park <mujjingun@gmail.com>
Date: Mon, 10 Jul 2017 16:59:28 +0900
Subject: Fix memory leak
Reviewers: hein
Reviewed By: hein
Differential Revision: https://phabricator.kde.org/D6580
---
src/viewer/viewcontainer.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/viewer/viewcontainer.cpp b/src/viewer/viewcontainer.cpp
index 31ff633..94d498e 100644
--- a/src/viewer/viewcontainer.cpp
+++ b/src/viewer/viewcontainer.cpp
@@ -2786,9 +2786,8 @@ void ViewContainer::showJoinChannelDialog()
if (dlg->exec() == QDialog::Accepted)
{
Server *server = Application::instance()->getConnectionManager()->getServerByConnectionId(dlg->connectionId());
- if (!server)
- return;
- server->sendJoinCommand(dlg->channel(), dlg->password());
+ if (server)
+ server->sendJoinCommand(dlg->channel(), dlg->password());
}
delete dlg;
}
--
cgit v0.11.2
|