summaryrefslogtreecommitdiff
path: root/sys/shm
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-10-23 01:22:43 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-11-24 19:12:10 -0500
commit56c4a9b692ee7db77599ed5f73772f1f6beb4a64 (patch)
tree5237155a35eb879539c7caa55f98522f2a625b58 /sys/shm
parenta770d7a70760ad4bbdbad22d2902e65148570eef (diff)
downloadgstreamer-plugins-bad-56c4a9b692ee7db77599ed5f73772f1f6beb4a64.tar.gz
shm: Use the right counter when freeing buffers
Diffstat (limited to 'sys/shm')
-rw-r--r--sys/shm/shmpipe.c4
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;
}