mirror of
https://github.com/taglib/taglib.git
synced 2025-07-17 20:44:20 -04:00
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:
@ -41,7 +41,7 @@ public:
|
||||
|
||||
~FilePrivate()
|
||||
{
|
||||
delete [] name;
|
||||
free((void *)name);
|
||||
}
|
||||
|
||||
FILE *file;
|
||||
@ -57,7 +57,7 @@ public:
|
||||
|
||||
File::File(const char *file)
|
||||
{
|
||||
d = new FilePrivate(strdup(file));
|
||||
d = new FilePrivate(::strdup(file));
|
||||
|
||||
d->readOnly = !isWritable(file);
|
||||
d->file = fopen(file, d->readOnly ? "r" : "r+");
|
||||
|
Reference in New Issue
Block a user