diff options
author | James Almer <jamrial@gmail.com> | 2018-10-31 21:06:55 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-10-31 22:44:36 +0300 |
commit | b7d2b7d2f82994f70edd9bfb908a02884731d4cc (patch) | |
tree | 47e62a0961e4ff746370b124e546e834c66d5832 /src/ref.h | |
parent | 6fd4013ae95649c7cb40337cb2e9efa7dd2e404d (diff) |
ref: don't leave dangling pointers around when freeing Dav1dRef
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'src/ref.h')
-rw-r--r-- | src/ref.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,6 +46,6 @@ Dav1dRef *dav1d_ref_wrap(const uint8_t *ptr, void (*free_callback)(const uint8_t *data, void *user_data), void *user_data); void dav1d_ref_inc(Dav1dRef *ref); -void dav1d_ref_dec(Dav1dRef *ref); +void dav1d_ref_dec(Dav1dRef **ref); #endif /* __DAV1D_SRC_REF_H__ */ |