mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 07:31:25 +02:00
Fixed memory leak from previos revision
This commit is contained in:
@@ -105,6 +105,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <memory.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
@@ -334,9 +335,9 @@ void FWWindow::fileSaveActionSetEn(bool en)
|
|||||||
|
|
||||||
void FWWindow::fileOpen()
|
void FWWindow::fileOpen()
|
||||||
{
|
{
|
||||||
ProjectPanel *proj = newProjectPanel();
|
std::auto_ptr<ProjectPanel> proj(newProjectPanel());
|
||||||
if (proj->fileOpen())
|
if (proj->fileOpen())
|
||||||
showSub(proj);
|
showSub(proj.release());
|
||||||
}
|
}
|
||||||
|
|
||||||
void FWWindow::fileClose()
|
void FWWindow::fileClose()
|
||||||
|
|||||||
Reference in New Issue
Block a user