Skip to content

Commit

Permalink
Releasing the callback only if it was correctly created.
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Dec 14, 2020
1 parent cbac24a commit a961d56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ThreadedFFI/TFCallback.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Class {
{ #category : #finalization }
TFCallback class >> finalizeResourceData: aCallbackDataHandler [

aCallbackDataHandler isNull ifTrue: [ ^ self ].

self primUnregister: aCallbackDataHandler.
aCallbackDataHandler beNull
]
Expand Down

0 comments on commit a961d56

Please sign in to comment.