[SCM] kodi-pvr-vdr-vnsi/master: VNSISession: remove unnecessary NULL check before delete
tiber-guest at users.alioth.debian.org
tiber-guest at users.alioth.debian.org
Sun Feb 28 15:46:49 UTC 2016
The following commit has been merged in the master branch:
commit c35675f2bfd8be31351c9cdb8a8e79efb0d89c6a
Author: Max Kellermann <max at duempel.org>
Date: Thu Nov 5 10:58:38 2015 +0100
VNSISession: remove unnecessary NULL check before delete
diff --git a/src/VNSISession.cpp b/src/VNSISession.cpp
index 0111bd1..219a325 100644
--- a/src/VNSISession.cpp
+++ b/src/VNSISession.cpp
@@ -61,11 +61,9 @@ void cVNSISession::Close()
{
m_socket->Close();
}
- if (m_socket)
- {
- delete m_socket;
- m_socket = NULL;
- }
+
+ delete m_socket;
+ m_socket = NULL;
}
bool cVNSISession::Open(const std::string& hostname, int port, const char *name)
--
kodi-pvr-vdr-vnsi packaging
More information about the pkg-multimedia-commits
mailing list