* 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:
Karsten Heimrich 2008-10-03 11:17:23 +00:00
parent 5feb95a185
commit fffc7e3e42
2 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,13 @@ ImageFilePanel::ImageFilePanel(file_panel_mode mode, BMessenger *target,
}
ImageFilePanel::~ImageFilePanel()
{
if (RefFilter())
delete RefFilter();
}
void
ImageFilePanel::Show()
{

View File

@ -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();