Skip to content

Commit

Permalink
fix for issue #4; Memory leak of NsfMethodContext with Tcl9
Browse files Browse the repository at this point in the history
Ths is not a fully satisfying fix, since it just fixes the symptom, not the cause.
Also the old variant is supposed to run free of this issue. However, we are
talking here about a single Tcl_Obj inside the nx object system, so the harm
is very limited. More details in the ticket.
  • Loading branch information
gustafn committed Oct 3, 2024
1 parent 1c2a0be commit 3dcb0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/nx/nx.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,7 @@ namespace eval ::nx {
}
set traceSpec [expr {[info exists trace] ? [list -trace $trace] : ""}]

set r [[self] object variable \
set r [:object variable \
-accessor $accessor \
-incremental=$incremental \
-class $class \
Expand Down

0 comments on commit 3dcb0fb

Please sign in to comment.