1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0023279: Accessing NULL pointer

Assuring the pointer is not 'NULL'.
This commit is contained in:
Pawel 2012-07-13 16:14:38 +02:00 committed by Pawel Kowalski
parent 575aec54df
commit 207e57e4c2

View File

@ -108,7 +108,7 @@ Standard_MMgrFactory::Standard_MMgrFactory()
Standard_MMgrFactory::~Standard_MMgrFactory() Standard_MMgrFactory::~Standard_MMgrFactory()
{ {
if ( ! myFMMgr ) { if ( myFMMgr ) {
myFMMgr->Purge(Standard_True); myFMMgr->Purge(Standard_True);
// delete myFMMgr; // delete myFMMgr;
// myFMMgr = 0; // myFMMgr = 0;