[devel] [PATCH for apt 30/38] pkgCacheFile: call Close() function in destructor

Aleksei Nikiforov darktemplar на altlinux.org
Вт Дек 10 18:23:35 MSK 2019


---
 apt/apt-pkg/cachefile.cc | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/apt/apt-pkg/cachefile.cc b/apt/apt-pkg/cachefile.cc
index 0ac882b..8b17345 100644
--- a/apt/apt-pkg/cachefile.cc
+++ b/apt/apt-pkg/cachefile.cc
@@ -50,11 +50,7 @@ pkgCacheFile::pkgCacheFile() : Map(0), Cache(0), DCache(0), SrcList(0), Policy(0
 /* */
 pkgCacheFile::~pkgCacheFile()
 {
-   delete DCache;
-   delete Policy;
-   delete Cache;
-   delete Map;
-   _system->UnLock(true);
+   Close();
 }   
 									/*}}}*/
 // CacheFile::BuildCaches - Open and build the cache files		/*{{{*/
-- 
2.24.0



Подробная информация о списке рассылки Devel