package apt-utils
tag 376777 - help
tag 376777 + patch
thanks

I'm pretty sure this bug is simply due to misuse of auto_ptr in writer.cc
(causing old auto_ptr's not to be freed properly or similar which then
causes breakage after a few have built up). This is probably my fault;
the fix is just:

--- refapt/apt-0.6.44.2/ftparchive/writer.cc    2006-03-29 17:01:29.000000000 
-0800
+++ apt/ftparchive/writer.cc    2006-07-05 05:10:04.000000000 -0700
@@ -398,7 +398,7 @@
         ioprintf(c1out, _("  %s has no override entry\n"), Package.c_str());
       }
       
-      OverItem = auto_ptr<Override::Item>(new Override::Item);
+      OverItem.reset(new Override::Item);
       OverItem->FieldOverride["Section"] = Tags.FindS("Section");
       OverItem->Priority = Tags.FindS("Priority");
    }

Cheers,
aj



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to