Skip to content

Commit

Permalink
Fixed a memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Oct 19, 2024
1 parent 7a6e9f1 commit 22789e5
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 3 deletions.
8 changes: 8 additions & 0 deletions repository/OpenPonk-BormEditor/BormNodeShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ BormNodeShape >> plusIconAction: aBlock [
plusIconAction := aBlock
]

{ #category : 'removing' }
BormNodeShape >> removeRender [

super removeRender.
plusIcon := nil.
labeled := nil
]

{ #category : 'rendering' }
BormNodeShape >> renderShapeDetails [

Expand Down
7 changes: 7 additions & 0 deletions repository/OpenPonk-BormEditor/BormParticipantShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ BormParticipantShape >> innerRoassalShapesBlock: aBlock [
innerRoassalShapesBlock := aBlock
]

{ #category : 'removing' }
BormParticipantShape >> removeRender [

super removeRender.
icon := nil
]

{ #category : 'rendering' }
BormParticipantShape >> renderBasicShape [

Expand Down
8 changes: 8 additions & 0 deletions repository/OpenPonk-BormEditor/BormStateShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Class {
#tag : 'Shapes'
}

{ #category : 'removing' }
BormStateShape >> removeRender [

super removeRender.
playIcon := nil.
innerBox := nil
]

{ #category : 'rendering' }
BormStateShape >> renderBasicShape [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ OPBormAssociationEnhancementController >> dependingOnElements [
]

{ #category : 'diagram elements' }
OPBormAssociationEnhancementController >> diagramElementOwner [
OPBormAssociationEnhancementController >> owner [

^ (self diagramController controllerForModel: model owner)
diagramElement
^ self diagramController controllerForModel: model owner
]
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,11 @@ OPBormParticipantController >> removeModel [
self model owner remove: self model.
super removeModel
]

{ #category : 'diagram elements' }
OPBormParticipantController >> unhookDiagramElement [

super unhookDiagramElement.
(self diagramElement ifNotExists: [ ^ self ])
innerRoassalShapesBlock: [ ]
]
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ OPBormProcessNodeController >> removeModel [
self model owner remove: self model.
super removeModel
]

{ #category : 'diagram elements' }
OPBormProcessNodeController >> unhookDiagramElement [

super unhookDiagramElement.

(self diagramElement ifNotExists: [ ^ self ]) plusIconAction: [ ]
]

0 comments on commit 22789e5

Please sign in to comment.