From: Lukáš Lalinský Date: Mon, 2 May 2011 20:41:01 +0000 (+0200) Subject: Always make a copy of the ID3v1 genre name strings X-Git-Tag: v1.8beta~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2e3a477e998f7fbf3b3e9567340e71ed25add89;p=taglib Always make a copy of the ID3v1 genre name strings http://thread.gmane.org/gmane.comp.kde.devel.taglib/1876 --- diff --git a/taglib/mpeg/id3v1/id3v1genres.cpp b/taglib/mpeg/id3v1/id3v1genres.cpp index 7893c72c..eba4c526 100644 --- a/taglib/mpeg/id3v1/id3v1genres.cpp +++ b/taglib/mpeg/id3v1/id3v1genres.cpp @@ -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; }