fixes memory leak in func_audiohookinherit.c