diff options
Diffstat (limited to 'macosx/tkMacOSXMenus.c')
-rw-r--r-- | macosx/tkMacOSXMenus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXMenus.c b/macosx/tkMacOSXMenus.c index 89b8600..b1b8bad 100644 --- a/macosx/tkMacOSXMenus.c +++ b/macosx/tkMacOSXMenus.c @@ -338,7 +338,9 @@ GetWidgetDemoPath( libpath = Tcl_GetObjResult(interp); Tcl_IncrRefCount(libpath); + Tcl_IncrRefCount(demo[0]); result = Tcl_FSJoinToPath(libpath, 1, demo); + Tcl_DecrRefCount(demo[0]); Tcl_DecrRefCount(libpath); } Tcl_ResetResult(interp); |