mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-14 00:20:41 +00:00
Merge branch 'master' into linked-modulators
This commit is contained in:
commit
9fa56bf340
2 changed files with 4 additions and 3 deletions
|
@ -198,9 +198,9 @@ if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_
|
||||||
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wbad-function-cast -Wcast-align" )
|
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wbad-function-cast -Wcast-align" )
|
||||||
|
|
||||||
if ( enable-ubsan )
|
if ( enable-ubsan )
|
||||||
set ( CMAKE_C_FLAGS "-fsanitize=undefined ${CMAKE_C_FLAGS}" )
|
set ( CMAKE_C_FLAGS "-fsanitize=address,undefined ${CMAKE_C_FLAGS}" )
|
||||||
set ( CMAKE_EXE_LINKER_FLAGS "-fsanitize=undefined ${CMAKE_EXE_LINKER_FLAGS}" )
|
set ( CMAKE_EXE_LINKER_FLAGS "-fsanitize=address,undefined ${CMAKE_EXE_LINKER_FLAGS}" )
|
||||||
set ( CMAKE_SHARED_LINKER_FLAGS "-fsanitize=undefined ${CMAKE_SHARED_LINKER_FLAGS}" )
|
set ( CMAKE_SHARED_LINKER_FLAGS "-fsanitize=address,undefined ${CMAKE_SHARED_LINKER_FLAGS}" )
|
||||||
set ( ENABLE_UBSAN 1 )
|
set ( ENABLE_UBSAN 1 )
|
||||||
endif ( enable-ubsan )
|
endif ( enable-ubsan )
|
||||||
endif (CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
endif (CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||||
|
|
|
@ -21,6 +21,7 @@ int main(void)
|
||||||
fluid_sequencer_send_now(seq, evt);
|
fluid_sequencer_send_now(seq, evt);
|
||||||
|
|
||||||
// client should be removed, deleting the seq should not free the struct again
|
// client should be removed, deleting the seq should not free the struct again
|
||||||
|
delete_fluid_event(evt);
|
||||||
delete_fluid_sequencer(seq);
|
delete_fluid_sequencer(seq);
|
||||||
delete_fluid_synth(synth);
|
delete_fluid_synth(synth);
|
||||||
delete_fluid_settings(settings);
|
delete_fluid_settings(settings);
|
||||||
|
|
Loading…
Reference in a new issue