fix: 解决内存泄漏问题

针对内存泄漏,使用在函数析构的时候把对应资源释放掉

Log: 优化代码质量
Bug: https://pms.uniontech.com/zentao/bug-view-64170.html
Change-Id: I95f90660ac7d996e6f86b6e387a0cf1025786f9e
This commit is contained in:
hujianzhong@uniontech.com 2021-03-22 18:20:15 +08:00
parent f98c1f6e0d
commit ed75ef1134

View File

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