Oh, that makes sense then.
One more question - am I in danger of creating a memory leak if I, for instance, have this kind of function?
Plot2d::function_that_gets_called_a_lot_from_my_main_window()
{
meshGrid->setData(new SpectrogramData());
rightAxis->setColorMap(zInterval, new ColorMap());
// etc.
// Basically where every function, that needs a pointer, gets a new() object.
}
Plot2d::function_that_gets_called_a_lot_from_my_main_window()
{
meshGrid->setData(new SpectrogramData());
rightAxis->setColorMap(zInterval, new ColorMap());
// etc.
// Basically where every function, that needs a pointer, gets a new() object.
}
To copy to clipboard, switch view to plain text mode
Bookmarks