diff options
Diffstat (limited to 'net-irc/konversation/files/konversation-1.7.2-memleak.patch')
-rw-r--r-- | net-irc/konversation/files/konversation-1.7.2-memleak.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-irc/konversation/files/konversation-1.7.2-memleak.patch b/net-irc/konversation/files/konversation-1.7.2-memleak.patch new file mode 100644 index 000000000000..c079809f0c60 --- /dev/null +++ b/net-irc/konversation/files/konversation-1.7.2-memleak.patch @@ -0,0 +1,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 + |