mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-07 20:37:28 +05:00
Memory leaks
This commit is contained in:
parent
d1e1f96ab2
commit
98380e7852
@ -225,7 +225,7 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
|
|||||||
|
|
||||||
SALOMEDS::GenericAttribute_var anAttr;
|
SALOMEDS::GenericAttribute_var anAttr;
|
||||||
SALOMEDS::StudyBuilder_var aStudyBuilder = theStudy->NewBuilder();
|
SALOMEDS::StudyBuilder_var aStudyBuilder = theStudy->NewBuilder();
|
||||||
SALOMEDS::UseCaseBuilder_var useCaseBuilder = theStudy->GetUseCaseBuilder();
|
SALOMEDS::UseCaseBuilder_wrap useCaseBuilder = theStudy->GetUseCaseBuilder();
|
||||||
|
|
||||||
SALOMEDS::SComponent_var aFather = theStudy->FindComponent("GEOM");
|
SALOMEDS::SComponent_var aFather = theStudy->FindComponent("GEOM");
|
||||||
if (aFather->_is_nil()) {
|
if (aFather->_is_nil()) {
|
||||||
@ -2809,8 +2809,9 @@ char* GEOM_Gen_i::getObjectInfo(CORBA::Long studyId, const char* entry)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char* anInfo = new char[strlen("Module ") + strlen(ComponentDataType()) + strlen(", ") + strlen(aTypeInfo) + 3];
|
CORBA::String_var compType = ComponentDataType();
|
||||||
sprintf(anInfo, "Module %s, %s", ComponentDataType(), aTypeInfo);
|
char* anInfo = new char[strlen("Module ") + strlen(compType.in()) + strlen(", ") + strlen(aTypeInfo) + 3];
|
||||||
|
sprintf(anInfo, "Module %s, %s", compType.in(), aTypeInfo);
|
||||||
|
|
||||||
char* ret = CORBA::string_dup(anInfo);
|
char* ret = CORBA::string_dup(anInfo);
|
||||||
delete [] anInfo;
|
delete [] anInfo;
|
||||||
|
@ -217,6 +217,7 @@ GEOM_Actor::~GEOM_Actor()
|
|||||||
#ifdef MYDEBUG
|
#ifdef MYDEBUG
|
||||||
MESSAGE (this<< " ~GEOM_Actor::GEOM_Actor");
|
MESSAGE (this<< " ~GEOM_Actor::GEOM_Actor");
|
||||||
#endif
|
#endif
|
||||||
|
myTextActor->Delete();
|
||||||
myHighlightProp->Delete();
|
myHighlightProp->Delete();
|
||||||
myPreHighlightProp->Delete();
|
myPreHighlightProp->Delete();
|
||||||
myShadingFaceProp->Delete();
|
myShadingFaceProp->Delete();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user