summaryrefslogtreecommitdiff
path: root/library/qpeapplication.cpp
Side-by-side diff
Diffstat (limited to 'library/qpeapplication.cpp') (more/less context) (show whitespace changes)
-rw-r--r--library/qpeapplication.cpp4
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 );
}