Commit 9f9b9543 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout: fix improbable memory leak

parent 5d033808
...@@ -599,6 +599,8 @@ int aout_DeviceSet (audio_output_t *aout, const char *id) ...@@ -599,6 +599,8 @@ int aout_DeviceSet (audio_output_t *aout, const char *id)
} }
vlc_mutex_lock (&owner->req.lock); vlc_mutex_lock (&owner->req.lock);
if (owner->req.device != unset_str)
free (owner->req.device);
owner->req.device = dev; owner->req.device = dev;
vlc_mutex_unlock (&owner->req.lock); vlc_mutex_unlock (&owner->req.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