summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2015-01-24 19:23:35 -0500
committerwm4 <wm4@nowhere>2015-01-25 01:26:11 +0100
commitb1d47786d8c7a151d73595d9ff5dabdfe4f3f5c4 (patch)
treecb61ee4fe12ccf5e313a25f5c82fbe81e3beefed
parent9cba45194937c3369c06bab1475d2997b1ae680a (diff)
downloadmpv-b1d47786d8c7a151d73595d9ff5dabdfe4f3f5c4.tar.bz2
mpv-b1d47786d8c7a151d73595d9ff5dabdfe4f3f5c4.tar.xz
ao_pulse: plug a memory leak
-rw-r--r--audio/out/ao_pulse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c
index d96b9fb98d..d6e08de53d 100644
--- a/audio/out/ao_pulse.c
+++ b/audio/out/ao_pulse.c
@@ -413,6 +413,9 @@ static int init(struct ao *ao)
&format, 1, proplist)))
goto unlock_and_fail;
+ pa_format_info_free(format);
+ format = NULL;
+
pa_proplist_free(proplist);
proplist = NULL;