Protect the object destructors agains null pointers on deletion, which

should be something valid.


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@534 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez
2010-04-25 00:18:43 +00:00
parent a627df4d10
commit 472cc5a993
13 changed files with 58 additions and 30 deletions

View File

@@ -74,6 +74,8 @@ void UpnpString_delete(UpnpString *p)
{
struct SUpnpString *q = (struct SUpnpString *)p;
if (!q) return;
q->m_length = 0;
free(q->m_string);