* fix some mem leaks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27858 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c716766b3d
commit
05ea853598
@ -167,6 +167,8 @@ RecorderWindow::~RecorderWindow()
|
||||
// Clean up currently recording file, if any.
|
||||
fRecEntry.Remove();
|
||||
fRecEntry.Unset();
|
||||
|
||||
delete fSavePanel;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1557,9 +1557,11 @@ GrepWindow::_OnOpenPanel()
|
||||
if (get_ref_for_path(fModel->fFilePanelPath.String(), &path) != B_OK)
|
||||
return;
|
||||
|
||||
fFilePanel = new BFilePanel(B_OPEN_PANEL, new BMessenger(NULL, this),
|
||||
&path, B_FILE_NODE|B_DIRECTORY_NODE|B_SYMLINK_NODE,
|
||||
true, new BMessage(MSG_REFS_RECEIVED), NULL, true, true);
|
||||
BMessenger messenger(this);
|
||||
BMessage message(MSG_REFS_RECEIVED);
|
||||
fFilePanel = new BFilePanel(B_OPEN_PANEL, &messenger, &path,
|
||||
B_FILE_NODE | B_DIRECTORY_NODE | B_SYMLINK_NODE, true,
|
||||
&message, NULL, true, true);
|
||||
|
||||
fFilePanel->Show();
|
||||
}
|
||||
|
@ -787,10 +787,10 @@ BInfoWindow::OpenFilePanel(const entry_ref *ref)
|
||||
// for the sym link
|
||||
if (fFilePanel == NULL) {
|
||||
BMessenger runner(this);
|
||||
|
||||
BMessage message(kNewTargetSelected);
|
||||
fFilePanel = new BFilePanel(B_OPEN_PANEL, &runner, ref,
|
||||
B_FILE_NODE | B_SYMLINK_NODE | B_DIRECTORY_NODE,
|
||||
false, new BMessage(kNewTargetSelected));
|
||||
false, &message);
|
||||
|
||||
if (fFilePanel != NULL) {
|
||||
fFilePanel->SetButtonLabel(B_DEFAULT_BUTTON,"Select");
|
||||
|
Loading…
Reference in New Issue
Block a user