fix cimprovagt core dump on free(0)

This commit is contained in:
jvdias 2006-04-11 19:39:43 +00:00
parent 5aaef22661
commit 9bdbd98b4f

View File

@ -0,0 +1,12 @@
--- pegasus/src/Pegasus/Common/AutoPtr.h.AutoPtr-Core 2006-01-30 11:16:46.000000000 -0500
+++ pegasus/src/Pegasus/Common/AutoPtr.h 2006-04-11 15:01:43.000000000 -0400
@@ -200,7 +200,8 @@
{
if (p != _ptr)
{
- delete _ptr;
+ if ( _ptr != 0 )
+ delete _ptr;
_ptr = p;
}
}