Valgrind says home-brew strdup() is broken

Fixes saving of MP3 meta-info from properties dialog


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@328336 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Waldo Bastian
2004-07-12 16:07:27 +00:00
parent 9a365f9e7e
commit 6879050c54
2 changed files with 2 additions and 14 deletions

View File

@ -71,18 +71,6 @@ namespace TagLib {
uint refCount;
};
/*!
* A simple strdup implementation since the standard one creates some wierdness
* with delete.
*/
static inline char *strdup(const char *s)
{
const int l = ::strlen(s);
char *buffer = new char[l];
::memcpy(buffer, s, l);
return buffer;
}
#endif // DO_NOT_DOCUMENT
}