mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
VP8TBufferClear: remove some misleading const's
the input to the function is non-const and the pointer being operated is being free'd; removes an unnecessary cast in the process Change-Id: Ic515ed672ddf7f8e4e36eeac696ff7aa8a3652f7
This commit is contained in:
parent
aa139c8f1a
commit
3b77e5a735
@ -53,10 +53,10 @@ void VP8TBufferInit(VP8TBuffer* const b, int page_size) {
|
||||
|
||||
void VP8TBufferClear(VP8TBuffer* const b) {
|
||||
if (b != NULL) {
|
||||
const VP8Tokens* p = b->pages_;
|
||||
VP8Tokens* p = b->pages_;
|
||||
while (p != NULL) {
|
||||
const VP8Tokens* const next = p->next_;
|
||||
WebPSafeFree((void*)p);
|
||||
VP8Tokens* const next = p->next_;
|
||||
WebPSafeFree(p);
|
||||
p = next;
|
||||
}
|
||||
VP8TBufferInit(b, b->page_size_);
|
||||
|
Loading…
Reference in New Issue
Block a user