Commit ccd89407 authored by David Fuhrmann's avatar David Fuhrmann
Browse files

auhal: another memleak fix

parent d5861971
......@@ -248,8 +248,9 @@ static void Close(vlc_object_t *obj)
CFRelease(p_sys->device_list);
vlc_mutex_unlock(&p_sys->device_list_lock);
config_PutPsz(p_aout, "auhal-audio-device", aout_DeviceGet(p_aout));
char *psz_device = aout_DeviceGet(p_aout);
config_PutPsz(p_aout, "auhal-audio-device", psz_device);
free(psz_device);
vlc_mutex_destroy(&p_sys->device_list_lock);
vlc_mutex_destroy(&p_sys->lock);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment