diff options
Diffstat (limited to 'src/pulse.c')
-rw-r--r-- | src/pulse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulse.c b/src/pulse.c index aa8dc30..524ac1e 100644 --- a/src/pulse.c +++ b/src/pulse.c @@ -572,6 +572,8 @@ static void stream_write_cb(pa_stream *s, size_t bytes, void *userdata) { goto finish; } + data = NULL; + bytes -= rbytes; } @@ -604,6 +606,8 @@ static void stream_write_cb(pa_stream *s, size_t bytes, void *userdata) { pa_stream_set_write_callback(s, NULL, NULL); } + ca_free(data); + return; finish: |