diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-25 09:02:00 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-25 09:02:00 +0000 |
commit | 3df4f07a6bc5674215983097cfbf589ea11cc610 (patch) | |
tree | af3dc074305945fec8c5de38306ac591bd89d414 /ext | |
parent | 105e1deba77b8c27558fc497e6c7525205d1f69f (diff) |
* ext/tk/tcltklib.c (delete_slaves): maybe increment the reference
count of a NULL Tcl_Obj [ruby-core:07759].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/tk/tcltklib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c index 03de109b49..e43b98e2c1 100644 --- a/ext/tk/tcltklib.c +++ b/ext/tk/tcltklib.c @@ -4,7 +4,7 @@ * Oct. 24, 1997 Y. Matsumoto */ -#define TCLTKLIB_RELEASE_DATE "2006-04-21" +#define TCLTKLIB_RELEASE_DATE "2006-04-25" #include "ruby.h" #include "rubysig.h" @@ -4285,10 +4285,11 @@ delete_slaves(ip) if (Tcl_ListObjLength((Tcl_Interp*)NULL, slave_list, &len) == TCL_OK) { for(i = 0; i < len; i++) { Tcl_ListObjIndex((Tcl_Interp*)NULL, slave_list, i, &elem); - Tcl_IncrRefCount(elem); if (elem == (Tcl_Obj*)NULL) continue; + Tcl_IncrRefCount(elem); + /* get slave */ /* slave_name = Tcl_GetString(elem); */ slave_name = Tcl_GetStringFromObj(elem, (int*)NULL); |