Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed: mismatching new[]/free usage. part of ticket #10929

  • Loading branch information...
commit 084adc0899aba34a90e7355be297b7f1ea9f16eb 1 parent fbfbb65
spiff authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 tools/EventClients/lib/c++/xbmcclient.h
View
6 tools/EventClients/lib/c++/xbmcclient.h
@@ -361,8 +361,7 @@ class CPacketHELO : public CPacket
virtual ~CPacketHELO()
{
m_DeviceName.clear();
- if (m_IconData)
- free(m_IconData);
+ delete[] m_IconData;
}
};
@@ -450,8 +449,7 @@ class CPacketNOTIFICATION : public CPacket
{
m_Title.clear();
m_Message.clear();
- if (m_IconData)
- free(m_IconData);
+ delete[] m_IconData;
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.