[Development] RFD: plugins vs QStringLiterals

Giuseppe D'Angelo dangelog at gmail.com
Fri Nov 6 17:38:35 CET 2015


On Fri, Nov 6, 2015 at 5:20 PM, Kevin Kofler <kevin.kofler at chello.at> wrote:
> They just need to deep-copy the
> strings they return in the plugin interface with:
> QString(orig.constData(), orig.size())
> if they can be QStringLiterals and are susceptible of outliving the plugin.

Given the problem is a specific case of dangling pointers to resources
(in the plugin) about to get destroyed... in the general case, are we
playing it "nice" and offering a way for the plugin to clean up after
itself, by removing any resouce it may have given out to other
libraries which will outlive it?

-- 
Giuseppe D'Angelo



More information about the Development mailing list