mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
105e1deba7
commit
3df4f07a6b
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Apr 25 18:00:05 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* ext/tk/tcltklib.c (delete_slaves): maybe increment the reference
|
||||||
|
count of a NULL Tcl_Obj [ruby-core:07759].
|
||||||
|
|
||||||
Fri Apr 21 15:19:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Fri Apr 21 15:19:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/tcltklib.c (lib_eventloop_ensure): refer freed pointer
|
* ext/tk/tcltklib.c (lib_eventloop_ensure): refer freed pointer
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Oct. 24, 1997 Y. Matsumoto
|
* Oct. 24, 1997 Y. Matsumoto
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define TCLTKLIB_RELEASE_DATE "2006-04-21"
|
#define TCLTKLIB_RELEASE_DATE "2006-04-25"
|
||||||
|
|
||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
#include "rubysig.h"
|
#include "rubysig.h"
|
||||||
|
@ -4285,10 +4285,11 @@ delete_slaves(ip)
|
||||||
if (Tcl_ListObjLength((Tcl_Interp*)NULL, slave_list, &len) == TCL_OK) {
|
if (Tcl_ListObjLength((Tcl_Interp*)NULL, slave_list, &len) == TCL_OK) {
|
||||||
for(i = 0; i < len; i++) {
|
for(i = 0; i < len; i++) {
|
||||||
Tcl_ListObjIndex((Tcl_Interp*)NULL, slave_list, i, &elem);
|
Tcl_ListObjIndex((Tcl_Interp*)NULL, slave_list, i, &elem);
|
||||||
Tcl_IncrRefCount(elem);
|
|
||||||
|
|
||||||
if (elem == (Tcl_Obj*)NULL) continue;
|
if (elem == (Tcl_Obj*)NULL) continue;
|
||||||
|
|
||||||
|
Tcl_IncrRefCount(elem);
|
||||||
|
|
||||||
/* get slave */
|
/* get slave */
|
||||||
/* slave_name = Tcl_GetString(elem); */
|
/* slave_name = Tcl_GetString(elem); */
|
||||||
slave_name = Tcl_GetStringFromObj(elem, (int*)NULL);
|
slave_name = Tcl_GetStringFromObj(elem, (int*)NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue