Update: after talking with the developer of Ivory about this we found that it's a flaw in the way the OS handles passing data from apps to extensions. There's very little / nothing share extension developers can do to fix this themselves. I reported a bug to Apple (FB11930921) about this and wrote a demo project https://github.com/timonus/ShareExtensionMemoryBug.