* 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:
@@ -167,6 +167,8 @@ RecorderWindow::~RecorderWindow()
|
|||||||
// Clean up currently recording file, if any.
|
// Clean up currently recording file, if any.
|
||||||
fRecEntry.Remove();
|
fRecEntry.Remove();
|
||||||
fRecEntry.Unset();
|
fRecEntry.Unset();
|
||||||
|
|
||||||
|
delete fSavePanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -266,7 +268,7 @@ RecorderWindow::InitWindow()
|
|||||||
|
|
||||||
BRect buttonRect;
|
BRect buttonRect;
|
||||||
|
|
||||||
// Button for rewinding
|
// Button for rewinding
|
||||||
buttonRect = BRect(BPoint(0,0), kSkipButtonSize);
|
buttonRect = BRect(BPoint(0,0), kSkipButtonSize);
|
||||||
buttonRect.OffsetTo(background->Bounds().LeftBottom() - BPoint(-7, 25));
|
buttonRect.OffsetTo(background->Bounds().LeftBottom() - BPoint(-7, 25));
|
||||||
fRewindButton = new TransportButton(buttonRect, "Rewind",
|
fRewindButton = new TransportButton(buttonRect, "Rewind",
|
||||||
|
|||||||
@@ -511,10 +511,10 @@ GrepWindow::_CreateMenus()
|
|||||||
fPreferencesMenu->AddSeparatorItem();
|
fPreferencesMenu->AddSeparatorItem();
|
||||||
fPreferencesMenu->AddItem(fShowLinesMenuitem);
|
fPreferencesMenu->AddItem(fShowLinesMenuitem);
|
||||||
|
|
||||||
fEncodingMenu->AddItem(fUTF8);
|
fEncodingMenu->AddItem(fUTF8);
|
||||||
fEncodingMenu->AddItem(fShiftJIS);
|
fEncodingMenu->AddItem(fShiftJIS);
|
||||||
fEncodingMenu->AddItem(fEUC);
|
fEncodingMenu->AddItem(fEUC);
|
||||||
fEncodingMenu->AddItem(fJIS);
|
fEncodingMenu->AddItem(fJIS);
|
||||||
|
|
||||||
// fEncodingMenu->SetLabelFromMarked(true);
|
// fEncodingMenu->SetLabelFromMarked(true);
|
||||||
// Do we really want this ?
|
// Do we really want this ?
|
||||||
@@ -1557,9 +1557,11 @@ GrepWindow::_OnOpenPanel()
|
|||||||
if (get_ref_for_path(fModel->fFilePanelPath.String(), &path) != B_OK)
|
if (get_ref_for_path(fModel->fFilePanelPath.String(), &path) != B_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fFilePanel = new BFilePanel(B_OPEN_PANEL, new BMessenger(NULL, this),
|
BMessenger messenger(this);
|
||||||
&path, B_FILE_NODE|B_DIRECTORY_NODE|B_SYMLINK_NODE,
|
BMessage message(MSG_REFS_RECEIVED);
|
||||||
true, new BMessage(MSG_REFS_RECEIVED), NULL, true, true);
|
fFilePanel = new BFilePanel(B_OPEN_PANEL, &messenger, &path,
|
||||||
|
B_FILE_NODE | B_DIRECTORY_NODE | B_SYMLINK_NODE, true,
|
||||||
|
&message, NULL, true, true);
|
||||||
|
|
||||||
fFilePanel->Show();
|
fFilePanel->Show();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -787,10 +787,10 @@ BInfoWindow::OpenFilePanel(const entry_ref *ref)
|
|||||||
// for the sym link
|
// for the sym link
|
||||||
if (fFilePanel == NULL) {
|
if (fFilePanel == NULL) {
|
||||||
BMessenger runner(this);
|
BMessenger runner(this);
|
||||||
|
BMessage message(kNewTargetSelected);
|
||||||
fFilePanel = new BFilePanel(B_OPEN_PANEL, &runner, ref,
|
fFilePanel = new BFilePanel(B_OPEN_PANEL, &runner, ref,
|
||||||
B_FILE_NODE | B_SYMLINK_NODE | B_DIRECTORY_NODE,
|
B_FILE_NODE | B_SYMLINK_NODE | B_DIRECTORY_NODE,
|
||||||
false, new BMessage(kNewTargetSelected));
|
false, &message);
|
||||||
|
|
||||||
if (fFilePanel != NULL) {
|
if (fFilePanel != NULL) {
|
||||||
fFilePanel->SetButtonLabel(B_DEFAULT_BUTTON,"Select");
|
fFilePanel->SetButtonLabel(B_DEFAULT_BUTTON,"Select");
|
||||||
|
|||||||
Reference in New Issue
Block a user