Skip to content

Commit 0fa82fd

Browse files
authored
Merge pull request #3751 from BsAtHome/fix_tcltk9-memleak
Fix memory leak in tcl/tk 9 update due to misspelled define
2 parents 501f44a + e549f09 commit 0fa82fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/emc/usr_intf/axis/extensions

src/emc/usr_intf/axis/extensions/togl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ int Togl_Configure(Tcl_Interp *interp, struct Togl *togl,
10701070
argc, (void *)optr, (char *)togl, flags) == TCL_ERROR) {
10711071
return(TCL_ERROR);
10721072
}
1073-
#if TK_VERSION_MAJOR >= 9
1073+
#if TK_MAJOR_VERSION >= 9
10741074
for(int u = 0; u < argc; u++) {
10751075
Tcl_DecrRefCount(optr[u]);
10761076
}

0 commit comments

Comments
 (0)