diff options
Diffstat (limited to 'src/alloc')
-rw-r--r-- | src/alloc/secmem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h index fd08c6198..42b5c7a2d 100644 --- a/src/alloc/secmem.h +++ b/src/alloc/secmem.h @@ -210,7 +210,7 @@ class MemoryRegion } void deallocate(T* p, u32bit n) - { alloc->deallocate(p, sizeof(T)*n); } + { if(alloc && p && n) alloc->deallocate(p, sizeof(T)*n); } T* buf; u32bit used; |