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