diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-10-23 01:22:43 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-11-24 19:12:10 -0500 |
commit | 56c4a9b692ee7db77599ed5f73772f1f6beb4a64 (patch) | |
tree | 5237155a35eb879539c7caa55f98522f2a625b58 /sys/shm | |
parent | a770d7a70760ad4bbdbad22d2902e65148570eef (diff) | |
download | gstreamer-plugins-bad-56c4a9b692ee7db77599ed5f73772f1f6beb4a64.tar.gz |
shm: Use the right counter when freeing buffers
Diffstat (limited to 'sys/shm')
-rw-r--r-- | sys/shm/shmpipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index 9f05f1ae5..40bd18fee 100644 --- a/sys/shm/shmpipe.c +++ b/sys/shm/shmpipe.c @@ -548,7 +548,7 @@ sp_writer_send_buf (ShmPipe * self, char *buf, size_t size) } if (c == 0) { - spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) * self->num_clients, sb); + spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) * sb->num_clients, sb); return 0; } @@ -784,7 +784,7 @@ sp_shmbuf_dec (ShmPipe * self, ShmBuffer * buf, ShmBuffer * prev_buf) shm_alloc_space_block_dec (buf->ablock); sp_shm_area_dec (self, buf->shm_area); - spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) * buf->num_clients, buf); + spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) * sb->num_clients, buf); return 0; } |