Another memory trim.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include <memory>
|
||||
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Window.H>
|
||||
|
||||
@ -35,7 +37,7 @@ static void addTextToFloatTimeout (void *data)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
FltkPlatform *platform = new FltkPlatform ();
|
||||
Layout *layout = new Layout (platform);
|
||||
auto layout = std::make_unique< Layout >( platform );
|
||||
|
||||
Fl_Window *window = new Fl_Window(400, 600, "Dw Floats Example");
|
||||
window->begin();
|
||||
@ -139,7 +141,6 @@ int main(int argc, char **argv)
|
||||
int errorCode = Fl::run();
|
||||
|
||||
wordStyle->unref();
|
||||
delete layout;
|
||||
|
||||
return errorCode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user