* 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:
@@ -30,6 +30,13 @@ ImageFilePanel::ImageFilePanel(file_panel_mode mode, BMessenger *target,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ImageFilePanel::~ImageFilePanel()
|
||||||
|
{
|
||||||
|
if (RefFilter())
|
||||||
|
delete RefFilter();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ImageFilePanel::Show()
|
ImageFilePanel::Show()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class ImageFilePanel : public BFilePanel {
|
|||||||
uint32 nodeFlavors = 0, bool allowMultipleSelection = true,
|
uint32 nodeFlavors = 0, bool allowMultipleSelection = true,
|
||||||
BMessage* message = NULL, BRefFilter* filter = NULL,
|
BMessage* message = NULL, BRefFilter* filter = NULL,
|
||||||
bool modal = false, bool hideWhenDone = true);
|
bool modal = false, bool hideWhenDone = true);
|
||||||
|
~ImageFilePanel();
|
||||||
|
|
||||||
virtual void SelectionChanged();
|
virtual void SelectionChanged();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user