Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyMemoryStream析构函数 #1580

Open
liubuyang opened this issue Nov 18, 2022 · 0 comments
Open

PyMemoryStream析构函数 #1580

liubuyang opened this issue Nov 18, 2022 · 0 comments

Comments

@liubuyang
Copy link

liubuyang commented Nov 18, 2022

master分支中
kbengine\kbe\src\lib\pyscript\py_memorystream.cpp中
构造PyMemoryStream
执行script::PyGC::incTracing("MemoryStream");
析构PyMemoryStream
没有调用script::PyGC::decTracing("MemoryStream");

PyMemoryStream::~PyMemoryStream()
{
}

使用KBEngine.debugTracing()
会一直显示
PyGC::debugTracing(): MemoryStream : 增加

疑问,是否可以添加script::PyGC::decTracing("MemoryStream");如下面所示
PyMemoryStream::~PyMemoryStream()
{
script::PyGC::decTracing("MemoryStream");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant