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

Msg内存泄漏 #5

Open
zzzzdx opened this issue Apr 24, 2024 · 2 comments
Open

Msg内存泄漏 #5

zzzzdx opened this issue Apr 24, 2024 · 2 comments

Comments

@zzzzdx
Copy link

zzzzdx commented Apr 24, 2024

void ClientController::requestLogin(quint32 id, QString password)
GetSocket()->sendMessage(new Msg(MsgType::REQUEST_LOGIN,tmp.toQByteArray()));
内部Msg未释放,java选手?

@zzzzdx
Copy link
Author

zzzzdx commented Apr 25, 2024

class ClientController : public QObject
{
QList friendList;
}
ClientController::ClientController(QObject* parent) : QObject(parent)
{
friendList = QList();
}
java选手实锤了

@jbji
Copy link
Owner

jbji commented Apr 28, 2024

Thanks for the feedback. Unfortunately we are out of hands right now and we would appreciate it if you would like to fix it and initiate a pull request. 😊

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

2 participants