mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
fixed memory leaks (thanks to David for fixing this in KDirOperator)
svn path=/trunk/KDE/kdebase/apps/; revision=746294
This commit is contained in:
parent
fc9a6701da
commit
54dfdc930a
3 changed files with 9 additions and 6 deletions
|
@ -127,8 +127,9 @@ DolphinColumnWidget::DolphinColumnWidget(QWidget* parent,
|
||||||
|
|
||||||
DolphinColumnWidget::~DolphinColumnWidget()
|
DolphinColumnWidget::~DolphinColumnWidget()
|
||||||
{
|
{
|
||||||
delete m_dirLister;
|
delete m_dolphinModel;
|
||||||
m_dirLister = 0;
|
m_dolphinModel = 0;
|
||||||
|
m_dirLister = 0; // deleted by m_dolphinModel
|
||||||
}
|
}
|
||||||
|
|
||||||
void DolphinColumnWidget::setDecorationSize(const QSize& size)
|
void DolphinColumnWidget::setDecorationSize(const QSize& size)
|
||||||
|
|
|
@ -158,8 +158,9 @@ DolphinViewContainer::DolphinViewContainer(DolphinMainWindow* mainWindow,
|
||||||
|
|
||||||
DolphinViewContainer::~DolphinViewContainer()
|
DolphinViewContainer::~DolphinViewContainer()
|
||||||
{
|
{
|
||||||
delete m_dirLister;
|
delete m_dolphinModel;
|
||||||
m_dirLister = 0;
|
m_dolphinModel = 0;
|
||||||
|
m_dirLister = 0; // deleted by m_dolphinModel
|
||||||
}
|
}
|
||||||
|
|
||||||
void DolphinViewContainer::setUrl(const KUrl& url)
|
void DolphinViewContainer::setUrl(const KUrl& url)
|
||||||
|
|
|
@ -48,8 +48,9 @@ TreeViewSidebarPage::TreeViewSidebarPage(QWidget* parent) :
|
||||||
|
|
||||||
TreeViewSidebarPage::~TreeViewSidebarPage()
|
TreeViewSidebarPage::~TreeViewSidebarPage()
|
||||||
{
|
{
|
||||||
delete m_dirLister;
|
delete m_dolphinModel;
|
||||||
m_dirLister = 0;
|
m_dolphinModel = 0;
|
||||||
|
m_dirLister = 0; // deleted by m_dolphinModel
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize TreeViewSidebarPage::sizeHint() const
|
QSize TreeViewSidebarPage::sizeHint() const
|
||||||
|
|
Loading…
Reference in a new issue