]> git.saurik.com Git - apt.git/blobdiff - ftparchive/apt-ftparchive.cc
apt-pkg/cdrom.h: move new member to the end to minimize ABI risk
[apt.git] / ftparchive / apt-ftparchive.cc
index 73d34249b6237c9df0e2d1c8b365507e72216367..0c29002e60cf4e9eadf149ffd8ef0045ae0ac029 100644 (file)
@@ -832,7 +832,7 @@ bool Generate(CommandLine &CmdL)
    }
 
    // close the Translation master files
-   for (vector<PackageMap>::iterator I = PkgList.begin(); I != PkgList.end(); I++)
+   for (vector<PackageMap>::reverse_iterator I = PkgList.rbegin(); I != PkgList.rend(); I++)
       if (I->TransWriter != NULL && I->TransWriter->DecreaseRefCounter() == 0)
         delete I->TransWriter;