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

CSelection可能的内存泄露? #17

Closed
huangyue5207 opened this issue Oct 28, 2015 · 1 comment
Closed

CSelection可能的内存泄露? #17

huangyue5207 opened this issue Oct 28, 2015 · 1 comment

Comments

@huangyue5207
Copy link

您好,出于某种目的,我需要new一个CSelection的对象,就像这样:CSelection* sel = new CSelection(selection),调用的拷贝构造函数。然而在程序的最后我有delete这个指针,但是用valgrind检测的时候还是检测出了内存泄露。释放CSelection对象的时候是直接delete还是调用release()函数呢?还是说这是个潜在的内存泄露问题?英文不好所以就用中文了,望解答,谢谢!

@huangyue5207
Copy link
Author

It's my mistake..

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