mirror of
https://github.com/linuxdeepin/gio-qt.git
synced 2024-11-10 12:03:46 +01:00
fix: 解决内存泄漏问题
针对内存泄漏,使用在函数析构的时候把对应资源释放掉 Log: 优化代码质量 Bug: https://pms.uniontech.com/zentao/bug-view-64170.html Change-Id: I95f90660ac7d996e6f86b6e387a0cf1025786f9e
This commit is contained in:
parent
f98c1f6e0d
commit
ed75ef1134
@ -85,6 +85,7 @@ DGioVolumeManagerPrivate::~DGioVolumeManagerPrivate()
|
|||||||
for (auto & c : m_connections) {
|
for (auto & c : m_connections) {
|
||||||
c.disconnect();
|
c.disconnect();
|
||||||
}
|
}
|
||||||
|
m_gmmVolumeMonitorPtr.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DGioVolumeManagerPrivate::slot_mountAdded(const Glib::RefPtr<Mount> &gmmMount)
|
void DGioVolumeManagerPrivate::slot_mountAdded(const Glib::RefPtr<Mount> &gmmMount)
|
||||||
|
Loading…
Reference in New Issue
Block a user