summaryrefslogtreecommitdiff
path: root/apt-inst/database.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-09-19 19:14:19 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-09-19 19:14:19 +0200
commit472ff00ef2e48383805d281c6364ec27839e3f4d (patch)
tree6f81e83690167fc78f3bbd3dcf03cf83cdcc60f6 /apt-inst/database.cc
parent8f3ba4e8708cb72be19dacc2af4f601ee5fea292 (diff)
use forward declaration in headers if possible instead of includes
Diffstat (limited to 'apt-inst/database.cc')
-rw-r--r--apt-inst/database.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/apt-inst/database.cc b/apt-inst/database.cc
index 1a94e1353..da7613491 100644
--- a/apt-inst/database.cc
+++ b/apt-inst/database.cc
@@ -11,6 +11,8 @@
#include<config.h>
#include <apt-pkg/database.h>
+#include <apt-pkg/filelist.h>
+#include <apt-pkg/pkgcachegen.h>
/*}}}*/
// DataBase::GetMetaTmp - Get the temp dir /*{{{*/
@@ -26,3 +28,8 @@ bool pkgDataBase::GetMetaTmp(std::string &Dir)
return true;
}
/*}}}*/
+pkgDataBase::~pkgDataBase()
+{
+ delete Cache;
+ delete FList;
+}