* fix mem leak

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27855 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich 2008-10-03 12:31:59 +00:00
parent 036203a01a
commit eba8ea5eb2

View File

@ -343,8 +343,10 @@ TWindow::MessageReceived(BMessage* m)
// freeze the image here, unfreeze after dump or cancel
fFatBits->StartSave();
fSavePanel = new BFilePanel(B_SAVE_PANEL, new BMessenger(NULL, this),
0, 0, false, new BMessage(msg_dump));
BMessenger messenger(this);
BMessage message(msg_dump);
fSavePanel = new BFilePanel(B_SAVE_PANEL, &messenger, 0, 0, false,
&message);
fSavePanel->SetSaveText("Bitmaps.h");
fSavePanel->Show();
break;