Bug 740772 - Use-after-free when adding attachments to events