summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-03-11 18:02:47 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-03-11 18:02:47 (GMT)
commita5102c9a477e543549b9413f49abb48f4e57ba2f (patch)
treee43a57c94728f79b5afb7fe2fa023e2c807014cb /generic
parentc11a52f6f9a6b7c639f8d114f92b2f9a92e779fe (diff)
downloadtk-a5102c9a477e543549b9413f49abb48f4e57ba2f.zip
tk-a5102c9a477e543549b9413f49abb48f4e57ba2f.tar.gz
tk-a5102c9a477e543549b9413f49abb48f4e57ba2f.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 d803d7b..248dd7b 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.c
@@ -1630,9 +1630,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;
}
}