diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-06-30 14:11:31 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-06-30 14:11:31 +0200 |
commit | 7a9f09bd66d51b92bb68f07e7fbc111df6206c93 (patch) | |
tree | b3e2a019b49b4a095e8c9f6b6423e57a5a388506 /apt-pkg/metaindex.h | |
parent | 6ae07b82316f846bc8d45f77ce75a4f8f387d6a2 (diff) |
merged r1811..1815 from lp:~donkult/apt/experimental
Diffstat (limited to 'apt-pkg/metaindex.h')
-rw-r--r-- | apt-pkg/metaindex.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-pkg/metaindex.h b/apt-pkg/metaindex.h index 2b87d7da9..779b6ab14 100644 --- a/apt-pkg/metaindex.h +++ b/apt-pkg/metaindex.h @@ -39,7 +39,13 @@ class metaIndex virtual vector<pkgIndexFile *> *GetIndexFiles() = 0; virtual bool IsTrusted() const = 0; - virtual ~metaIndex() {}; + virtual ~metaIndex() { + if (Indexes == 0) + return; + for (vector<pkgIndexFile *>::iterator I = (*Indexes).begin(); I != (*Indexes).end(); ++I) + delete *I; + delete Indexes; + } }; #endif |