don't leak the BMessenger. CID 884

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27731 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-25 10:39:48 +00:00
parent cd83a15bde
commit 657a3676f9
1 changed files with 4 additions and 3 deletions

View File

@ -96,10 +96,11 @@ KeymapWindow::KeymapWindow()
if (userKeymapsDir.InitCheck() != B_OK) {
create_directory(path.Path(), S_IRWXU | S_IRWXG | S_IRWXO);
}
fOpenPanel = new BFilePanel(B_OPEN_PANEL, new BMessenger(this), &ref,
BMessenger messenger(this);
fOpenPanel = new BFilePanel(B_OPEN_PANEL, &messenger, &ref,
B_FILE_NODE, false, NULL);
fSavePanel = new BFilePanel(B_SAVE_PANEL, new BMessenger(this), &ref,
fSavePanel = new BFilePanel(B_SAVE_PANEL, &messenger, &ref,
B_FILE_NODE, false, NULL);
}