mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-05 19:42:54 +01:00
cosmetics: WebPSafeAlloc -> WebPSafeMalloc
Change-Id: I0c47b827cadc18cf739f1648c605311c9bc41375
This commit is contained in:
parent
0a4699bcc9
commit
0a57ad0dc5
@ -723,7 +723,7 @@ static int AllocateMemory(VP8Decoder* const dec) {
|
|||||||
return VP8SetError(dec, VP8_STATUS_OUT_OF_MEMORY,
|
return VP8SetError(dec, VP8_STATUS_OUT_OF_MEMORY,
|
||||||
"no memory during frame initialization.");
|
"no memory during frame initialization.");
|
||||||
}
|
}
|
||||||
// down-cast is ok, thanks to WebPSafeAlloc() above.
|
// down-cast is ok, thanks to WebPSafeMalloc() above.
|
||||||
dec->mem_size_ = (size_t)needed;
|
dec->mem_size_ = (size_t)needed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
// http://valgrind.org/docs/manual/ms-manual.html
|
// http://valgrind.org/docs/manual/ms-manual.html
|
||||||
// Here is an example command line:
|
// Here is an example command line:
|
||||||
/* valgrind --tool=massif --massif-out-file=massif.out \
|
/* valgrind --tool=massif --massif-out-file=massif.out \
|
||||||
--stacks=yes --alloc-fn=WebPSafeAlloc --alloc-fn=WebPSafeCalloc
|
--stacks=yes --alloc-fn=WebPSafeMalloc --alloc-fn=WebPSafeCalloc
|
||||||
ms_print massif.out
|
ms_print massif.out
|
||||||
*/
|
*/
|
||||||
// In addition:
|
// In addition:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user