Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/ref.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-10-31 21:06:55 +0300
committerJames Almer <jamrial@gmail.com>2018-10-31 22:44:36 +0300
commitb7d2b7d2f82994f70edd9bfb908a02884731d4cc (patch)
tree47e62a0961e4ff746370b124e546e834c66d5832 /src/ref.h
parent6fd4013ae95649c7cb40337cb2e9efa7dd2e404d (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ref.h b/src/ref.h
index 719a9f3..6677693 100644
--- a/src/ref.h
+++ b/src/ref.h
@@ -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__ */