Permalink
Browse files

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

  • Loading branch information...
1 parent fbfbb65 commit 084adc0899aba34a90e7355be297b7f1ea9f16eb spiff committed Dec 30, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 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;
}
};

0 comments on commit 084adc0

Please sign in to comment.