summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-03-11 18:39:23 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-03-11 18:39:23 (GMT)
commit0da67e322c064f41c6ff9be79c11dd73350768cc (patch)
tree8d99c3d688bd25abab53e0bf56261399255a5e32 /generic
parent2ead17659538d3181771fbbc11b878b2aefa749c (diff)
parenta5102c9a477e543549b9413f49abb48f4e57ba2f (diff)
downloadtk-0da67e322c064f41c6ff9be79c11dd73350768cc.zip
tk-0da67e322c064f41c6ff9be79c11dd73350768cc.tar.gz
tk-0da67e322c064f41c6ff9be79c11dd73350768cc.tar.bz2
3607326 Stop segfault from [listbox .l -listvariable $array].
Diffstat (limited to 'generic')
-rw-r--r--generic/tkListbox.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index 48287ee..d77fc8f 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.c
@@ -1629,9 +1629,6 @@ ConfigureListbox(
if (Tcl_SetVar2Ex(interp, listPtr->listVarName, NULL,
listVarObj, TCL_GLOBAL_ONLY|TCL_LEAVE_ERR_MSG)
== NULL) {
- if (oldListObj == NULL) {
- Tcl_DecrRefCount(listVarObj);
- }
continue;
}
}