-rw-r--r-- | library/qpeapplication.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 43a9be5..af00f49 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -2271,22 +2271,26 @@ void* operator new( size_t size ) void operator delete[]( void* p ) { + if ( p ) free( p ); } void operator delete[]( void* p, size_t /*size*/ ) { + if ( p ) free( p ); } void operator delete( void* p ) { + if ( p ) free( p ); } void operator delete( void* p, size_t /*size*/ ) { + if ( p ) free( p ); } |