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
@@ -2262,41 +2262,45 @@ void __cxa_pure_virtual()
void* operator new[]( size_t size )
{
return malloc( size );
}
void* operator new( size_t size )
{
return malloc( size );
}
void operator delete[]( void* p )
{
- free( p );
+ if ( p )
+ free( p );
}
void operator delete[]( void* p, size_t /*size*/ )
{
- free( p );
+ if ( p )
+ free( p );
}
void operator delete( void* p )
{
- free( p );
+ if ( p )
+ free( p );
}
void operator delete( void* p, size_t /*size*/ )
{
- free( p );
+ if ( p )
+ free( p );
}
#endif
#if ( QT_VERSION <= 230 ) && !defined(SINGLE_APP)
#include <qwidgetlist.h>
#ifdef QWS
#include <qgfx_qws.h>
extern QRect qt_maxWindowRect;
void qt_setMaxWindowRect(const QRect& r )
{
qt_maxWindowRect = qt_screen->mapFromDevice( r,