AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   New menu memory leakage (https://forums.alliedmods.net/showthread.php?t=335324)

Natsheh 11-24-2021 23:27

New menu memory leakage
 
Hello, while i was testing around i found out that when you've a new menu opened and opening a vugi menu using the following command "buyequip" will close the new menu without calling the handler which will leave the new menu available and not destroyed.

Amxx version: 1.10 5420

DruGzOG 11-25-2021 08:29

Re: New menu memory leakage
 
https://github.com/alliedmodders/amxmodx

And test it with the latest amxmodx, can you provide logs or some documentation that proves this?

Natsheh 11-25-2021 10:34

Re: New menu memory leakage
 
Quote:

Originally Posted by DruGzOG (Post 2764291)
https://github.com/alliedmodders/amxmodx

And test it with the latest amxmodx, can you provide logs or some documentation that proves this?

Sure ill provide a picture,

Also i am getting more memory leaks but can't define them all

M Ali 12-28-2021 04:43

Re: New menu memory leakage
 
void MainWindow::createMenu()
{
//Create menus
QAction *quit = new QAction("&Quit", this);
QMenu *file = menuBar()->addMenu("&File");
file->addAction(quit);
connect(quit, &QAction::triggered,
[=]() {
QApplication::quit();
});

//Creating instances of ticker and timer here
//Done so that the connection between ticker and timer is possible
ticker = new Ticker(this);
timer = new Timer(this);
connect(timer, &Timer::timeout, ticker, &Ticker::playSound);
}


All times are GMT -4. The time now is 10:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.