Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

safe delete m_source on windows as well. unlikely we hit it but you'l…

…l never know.
  • Loading branch information...
commit 7e7dce7928ea2d57c1ee2d0e2b82082d997ac578 1 parent d0d318e
@wsoltys wsoltys authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/interfaces/python/XBPyThread.cpp
View
3  xbmc/interfaces/python/XBPyThread.cpp
@@ -103,6 +103,8 @@ XBPyThread::~XBPyThread()
void XBPyThread::setSource(const CStdString &src)
{
+ if (m_source)
+ delete [] m_source;
#ifdef TARGET_WINDOWS
CStdString strsrc;
if (m_type == 'F')
@@ -113,7 +115,6 @@ void XBPyThread::setSource(const CStdString &src)
m_source = new char[strsrc.GetLength()+1];
strcpy(m_source, strsrc);
#else
- if (m_source) delete [] m_source;
m_source = new char[src.GetLength()+1];
strcpy(m_source, src);
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.