forked from mirrors/gio-qt
fix: 解决内存泄漏问题
针对内存泄漏,使用在函数析构的时候把对应资源释放掉 Log: 优化代码质量 Bug: https://pms.uniontech.com/zentao/bug-view-64170.html Change-Id: I95f90660ac7d996e6f86b6e387a0cf1025786f9e
This commit is contained in:
parent
f98c1f6e0d
commit
ed75ef1134
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ DGioVolumeManagerPrivate::~DGioVolumeManagerPrivate()
|
|||
for (auto & c : m_connections) {
|
||||
c.disconnect();
|
||||
}
|
||||
m_gmmVolumeMonitorPtr.release();
|
||||
}
|
||||
|
||||
void DGioVolumeManagerPrivate::slot_mountAdded(const Glib::RefPtr<Mount> &gmmMount)
|
||||
|
|
Loading…
Reference in a new issue