mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user