* fix mem leak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27856 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eba8ea5eb2
commit
c1a10c140c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user