summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 43a9be5..af00f49 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -2273,3 +2273,4 @@ void operator delete[]( void* p )
{
- free( p );
+ if ( p )
+ free( p );
}
@@ -2278,3 +2279,4 @@ void operator delete[]( void* p, size_t /*size*/ )
{
- free( p );
+ if ( p )
+ free( p );
}
@@ -2284,3 +2286,4 @@ void operator delete( void* p )
{
- free( p );
+ if ( p )
+ free( p );
}
@@ -2289,3 +2292,4 @@ void operator delete( void* p, size_t /*size*/ )
{
- free( p );
+ if ( p )
+ free( p );
}