* fix mem leak

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27856 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich 2008-10-03 12:32:52 +00:00
parent eba8ea5eb2
commit c1a10c140c

View File

@ -898,14 +898,14 @@ ShowImageWindow::SaveAs(BMessage *message)
// Add the chosen translator and output type to the
// message that the save panel will send back
BMessage *panelMsg = new BMessage(MSG_SAVE_PANEL);
panelMsg->AddInt32(kTranslatorField, outTranslator);
panelMsg->AddInt32(kTypeField, outType);
BMessage panelMsg(MSG_SAVE_PANEL);
panelMsg.AddInt32(kTranslatorField, outTranslator);
panelMsg.AddInt32(kTypeField, outType);
// Create save panel and show it
BMessenger target(this);
fSavePanel = new (std::nothrow) BFilePanel(B_SAVE_PANEL,
&target, NULL, 0, false, panelMsg);
&target, NULL, 0, false, &panelMsg);
if (!fSavePanel)
return;