D7750: fix crash when more than one instances of ExtractorCollection are destructed

Matthieu Gallien noreply at phabricator.kde.org
Sun Sep 10 19:40:50 UTC 2017


mgallien added a comment.


  According to QPluginLoader, if one wants to release the memory,
  
  In https://phabricator.kde.org/D7750#144373, @anthonyfieroni wrote:
  
  > https://phabricator.kde.org/source/kfilemetadata/browse/master/src/extractorcollection.cpp;621101fd9e9d82be3d84f2140a4bf53ea13fd3f0$137
  >  Look it leak now, no?
  
  
  According to documentation of QPluginLoader, memory is released at application quit. If you want to release it earlier, one should use unload.
  I can modify the patch to use that to release as soon as it is possible (i.e. no ExtractorCollection contains a given plugin). For that, I will probably need to make QPluginLoader a member of Extractor class.
  What do you think ?

REPOSITORY
  R286 KFileMetaData

REVISION DETAIL
  https://phabricator.kde.org/D7750

To: mgallien, #frameworks
Cc: anthonyfieroni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170910/0a8f6ba7/attachment.html>


More information about the Kde-frameworks-devel mailing list