Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » This is heap leak? (a Ptr use new,no delete,heap leak)
icon3.gif  This is heap leak? [message #61786] Sat, 30 August 2025 00:44 Go to previous message
fzx374cn is currently offline  fzx374cn
Messages: 1
Registered: August 2025
Junior Member
#include <CtrlLib/CtrlLib.h>

using namespace Upp;
class Test : public TopWindow {
public:
Test();
};

Test::Test()
{
Ptr<Button> ptr;
ptr = new Button;
}

GUI_APP_MAIN
{
Test t;
t.Run();
}
F5 run this code, when exit, popup a window,Is it heap leak?
 
Read Message icon3.gif
Read Message
Read Message
Previous Topic: VectorMap iteration
Next Topic: Add compilable testcases for nontrivial problems!
Goto Forum:
  


Current Time: Fri Sep 05 19:59:44 CEST 2025

Total time taken to generate the page: 0.06680 seconds