mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
(WIIU) add more NULL check to *_free functions.
This commit is contained in:
parent
7cc34302f4
commit
6b24663dd9
@ -134,7 +134,8 @@ void * MEM1_alloc(unsigned int size, unsigned int align)
|
|||||||
|
|
||||||
void MEM1_free(void *ptr)
|
void MEM1_free(void *ptr)
|
||||||
{
|
{
|
||||||
MEMFreeToExpHeap(mem1_heap, ptr);
|
if (ptr)
|
||||||
|
MEMFreeToExpHeap(mem1_heap, ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void * MEMBucket_alloc(unsigned int size, unsigned int align)
|
void * MEMBucket_alloc(unsigned int size, unsigned int align)
|
||||||
@ -146,5 +147,6 @@ void * MEMBucket_alloc(unsigned int size, unsigned int align)
|
|||||||
|
|
||||||
void MEMBucket_free(void *ptr)
|
void MEMBucket_free(void *ptr)
|
||||||
{
|
{
|
||||||
MEMFreeToExpHeap(bucket_heap, ptr);
|
if (ptr)
|
||||||
|
MEMFreeToExpHeap(bucket_heap, ptr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user