# HG changeset patch # User Matti Hamalainen # Date 1191245196 -10800 # Node ID 5638651b7b3d4bf896ff43c46880af213757f9aa # Parent a1ed9f7cb4cc3605c9b559cce70e2adacabbf89e Fixed warnings and one UTF-8 conversion. diff -r a1ed9f7cb4cc -r 5638651b7b3d src/modplug/modplugbmp.cxx --- a/src/modplug/modplugbmp.cxx Mon Oct 01 10:39:03 2007 +0200 +++ b/src/modplug/modplugbmp.cxx Mon Oct 01 16:26:36 2007 +0300 @@ -506,7 +506,7 @@ { CSoundFile* lSoundFile; Archive* lArchive; - gchar* tmps; + const gchar* tmps; //open and mmap the file lArchive = OpenArchive(aFilename); @@ -553,9 +553,9 @@ * an arbitrary module file uses .. typically it is some DOS CP-variant, * except for true Amiga modules. */ - tmps = str_to_utf8(lSoundFile->GetTitle()); - tuple_associate_string(ti, FIELD_TITLE, NULL, lSoundFile->GetTitle()); - g_free(tmps); + gchar *tmps2 = str_to_utf8(lSoundFile->GetTitle()); + tuple_associate_string(ti, FIELD_TITLE, NULL, tmps2); + g_free(tmps2); //unload the file lSoundFile->Destroy();