Don't leak the BMessenger (CID 880)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27733 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5def543d91
commit
bdee0a3f6d
@ -63,13 +63,15 @@ void FileSelector::MessageReceived(BMessage * msg)
|
||||
switch (msg->what)
|
||||
{
|
||||
case START_MSG:
|
||||
{
|
||||
BMessenger messenger(this);
|
||||
m_save_panel = new BFilePanel(B_SAVE_PANEL,
|
||||
new BMessenger(this), NULL, 0, false);
|
||||
&messenger, NULL, 0, false);
|
||||
|
||||
m_save_panel->Window()->SetWorkspaces(B_CURRENT_WORKSPACE);
|
||||
m_save_panel->Show();
|
||||
break;
|
||||
|
||||
}
|
||||
case B_SAVE_REQUESTED:
|
||||
{
|
||||
entry_ref dir;
|
||||
|
Loading…
Reference in New Issue
Block a user