When closing widelands, it's the call in the destructor of songset. When a music has reached its end It's the other one:
*** glibc detected *** ./widelands: double free or corruption (fasttop): 0x0a531a60 *** ======= Backtrace: ========= /lib/libc.so.6(+0x72ac2)[0xb71b1ac2] /usr/lib/libSDL-1.2.so.0(SDL_FreeRW+0x1b)[0xb762ff4b] ./widelands(_ZN7Songset8get_songEv+0x163)[0x87f02b5] ./widelands(_ZN13Sound_Handler11start_musicERKSsi+0xca)[0x87ebaaa] ./widelands(_ZN13Sound_Handler12change_musicERKSsii+0xa6)[0x87ebc06] ./widelands(_ZN13WLApplication10poll_eventER9SDL_Eventb+0x168)[0x858372c] ./widelands(_ZN13WLApplication12handle_inputEPK13InputCallback+0x504)[0x8583d98] ./widelands(_ZN2UI5Panel3runEv+0x1bf)[0x86411d7] ./widelands(_ZN9Widelands4Game3runEPN2UI14ProgressWindowENS0_15Start_Game_TypeE+0x7a2)[0x87041c0] ./widelands(_ZN13WLApplication8new_gameEv+0x32f)[0x85889e9] ./widelands(_ZN13WLApplication21mainmenu_singleplayerEv+0x64)[0x8587fde] ./widelands(_ZN13WLApplication8mainmenuEv+0x1a0)[0x8587b82] ./widelands(_ZN13WLApplication3runEv+0x934)[0x8583156] ./widelands(main+0x2f9)[0x8581605] /lib/libc.so.6(__libc_start_main+0xf5)[0xb71583d5] ./widelands[0x8581241]
When closing widelands, it's the call in the destructor of songset.
When a music has reached its end It's the other one:
*** glibc detected *** ./widelands: double free or corruption (fasttop): 0x0a531a60 *** so.6(+0x72ac2) [0xb71b1ac2] libSDL- 1.2.so. 0(SDL_FreeRW+ 0x1b)[0xb762ff4 b] _ZN7Songset8get _songEv+ 0x163)[ 0x87f02b5] _ZN13Sound_ Handler11start_ musicERKSsi+ 0xca)[0x87ebaaa ] _ZN13Sound_ Handler12change _musicERKSsii+ 0xa6)[0x87ebc06 ] _ZN13WLApplicat ion10poll_ eventER9SDL_ Eventb+ 0x168)[ 0x858372c] _ZN13WLApplicat ion12handle_ inputEPK13Input Callback+ 0x504)[ 0x8583d98] _ZN2UI5Panel3ru nEv+0x1bf) [0x86411d7] _ZN9Widelands4G ame3runEPN2UI14 ProgressWindowE NS0_15Start_ Game_TypeE+ 0x7a2)[ 0x87041c0] _ZN13WLApplicat ion8new_ gameEv+ 0x32f)[ 0x85889e9] _ZN13WLApplicat ion21mainmenu_ singleplayerEv+ 0x64)[0x8587fde ] _ZN13WLApplicat ion8mainmenuEv+ 0x1a0)[ 0x8587b82] _ZN13WLApplicat ion3runEv+ 0x934)[ 0x8583156] main+0x2f9) [0x8581605] so.6(__ libc_start_ main+0xf5) [0xb71583d5] 0x8581241]
======= Backtrace: =========
/lib/libc.
/usr/lib/
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
./widelands(
/lib/libc.
./widelands[