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:
parent
cd83a15bde
commit
657a3676f9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user