Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
02956017
Kaydet (Commit)
02956017
authored
Eki 29, 2000
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do not release unallocated Tcl objects. Closes #117278 and #117167.
üst
ebc37b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
_tkinter.c
Modules/_tkinter.c
+8
-3
No files found.
Modules/_tkinter.c
Dosyayı görüntüle @
02956017
...
@@ -572,13 +572,13 @@ Tkapp_Call(PyObject *self, PyObject *args)
...
@@ -572,13 +572,13 @@ Tkapp_Call(PyObject *self, PyObject *args)
objv
=
objStore
;
objv
=
objStore
;
if
(
args
==
NULL
)
if
(
args
==
NULL
)
objc
=
0
;
/* do nothing */
;
else
if
(
!
PyTuple_Check
(
args
))
{
else
if
(
!
PyTuple_Check
(
args
))
{
objc
=
1
;
objv
[
0
]
=
AsObj
(
args
);
objv
[
0
]
=
AsObj
(
args
);
if
(
objv
[
0
]
==
0
)
if
(
objv
[
0
]
==
0
)
goto
finally
;
goto
finally
;
objc
=
1
;
Tcl_IncrRefCount
(
objv
[
0
]);
Tcl_IncrRefCount
(
objv
[
0
]);
}
}
else
{
else
{
...
@@ -588,6 +588,7 @@ Tkapp_Call(PyObject *self, PyObject *args)
...
@@ -588,6 +588,7 @@ Tkapp_Call(PyObject *self, PyObject *args)
objv
=
(
Tcl_Obj
**
)
ckalloc
(
objc
*
sizeof
(
char
*
));
objv
=
(
Tcl_Obj
**
)
ckalloc
(
objc
*
sizeof
(
char
*
));
if
(
objv
==
NULL
)
{
if
(
objv
==
NULL
)
{
PyErr_NoMemory
();
PyErr_NoMemory
();
objc
=
0
;
goto
finally
;
goto
finally
;
}
}
}
}
...
@@ -599,8 +600,12 @@ Tkapp_Call(PyObject *self, PyObject *args)
...
@@ -599,8 +600,12 @@ Tkapp_Call(PyObject *self, PyObject *args)
break
;
break
;
}
}
objv
[
i
]
=
AsObj
(
v
);
objv
[
i
]
=
AsObj
(
v
);
if
(
!
objv
[
i
])
if
(
!
objv
[
i
])
{
/* Reset objc, so it attempts to clear
objects only up to i. */
objc
=
i
;
goto
finally
;
goto
finally
;
}
Tcl_IncrRefCount
(
objv
[
i
]);
Tcl_IncrRefCount
(
objv
[
i
]);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment