TclDecrRefCount macro op order
Closed / Accepted524802ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-03-02 15:32:19
The TclDecrRefCount macro first clears the string rep, then the internal rep. This is (a) different from the operation of Tcl_DecrRefCount (TclFreeObj), that clears the internal rep first. (b) dangerous, as some object type's internal rep might well have a reference to its string rep. Enclosed a patch that restores the correct order.
msoferplain2002-03-02 22:32:19
File Added - 18706: tclInt.h.diff
msoferplain2002-03-06 22:06:02
Logged In: YES user_id=148712 Committed.
Log in (anonymous is fine) to add a comment.
Attachments:
- tclInt.h.diff [download] added by msofer on 2002-03-02 22:32:19. [details]