fix some valgrind issues

This commit is contained in:
Wim Taymans 2017-06-21 16:42:10 +02:00
parent 2b8aea7e9b
commit 0fc6b1c0be
2 changed files with 2 additions and 1 deletions

View file

@ -59,7 +59,7 @@ static inline bool spa_pod_is_object_type(struct spa_pod *pod, uint32_t type)
(iter) = SPA_MEMBER((iter), SPA_ROUND_UP_N (SPA_POD_SIZE (iter), 8), struct spa_pod))
#define SPA_POD_CONTENTS_FOREACH(pod, offset, iter) \
SPA_POD_FOREACH(SPA_MEMBER((pod), (offset), struct spa_pod),SPA_POD_SIZE (pod),iter)
SPA_POD_FOREACH(SPA_MEMBER((pod), (offset), struct spa_pod),SPA_POD_SIZE (pod)-(offset),iter)
#define SPA_POD_OBJECT_BODY_FOREACH(body, size, iter) \
for ((iter) = SPA_MEMBER((body), sizeof(struct spa_pod_object_body), struct spa_pod); \