* fix probable memory leaks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27849 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5feb95a185
commit
fffc7e3e42
@ -30,6 +30,13 @@ ImageFilePanel::ImageFilePanel(file_panel_mode mode, BMessenger *target,
|
||||
}
|
||||
|
||||
|
||||
ImageFilePanel::~ImageFilePanel()
|
||||
{
|
||||
if (RefFilter())
|
||||
delete RefFilter();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ImageFilePanel::Show()
|
||||
{
|
||||
|
@ -36,6 +36,7 @@ class ImageFilePanel : public BFilePanel {
|
||||
uint32 nodeFlavors = 0, bool allowMultipleSelection = true,
|
||||
BMessage* message = NULL, BRefFilter* filter = NULL,
|
||||
bool modal = false, bool hideWhenDone = true);
|
||||
~ImageFilePanel();
|
||||
|
||||
virtual void SelectionChanged();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user