Always make a copy of the ID3v1 genre name strings

http://thread.gmane.org/gmane.comp.kde.devel.taglib/1876
This commit is contained in:
Lukáš Lalinský
2011-05-02 22:41:01 +02:00
parent 81734919d2
commit b2e3a477e9

View File

@ -207,7 +207,7 @@ ID3v1::GenreMap ID3v1::genreMap()
String ID3v1::genre(int i)
{
if(i >= 0 && i < genresSize)
return genres[i];
return genres[i] + String::null; // always make a copy
return String::null;
}