• Markus Mohrhard's avatar
    work on sane lifecylce for SfxFilter · e94d5233
    Markus Mohrhard yazdı
    all SfxFilter instances should now be hold inside of a std::shared_ptr.
    
    This fixes a number of huge memory leaks in the test framework and
    removes one huge source of memory issue in sfx2. SfxMedium contains a
    pointer to the SfxFilter but does not own. Therefore it is required that
    any SfxFilter belonging to a SfxMedium lives longer. However this seems
    to work mostly by hoping that all SfxFilter instances are stored in a
    global array. As we have seen with the tests this is not true (there are
    also some cases inside of sd that seem to not follow that pattern as
    well).
    
    Change-Id: I12fd04a504cc4efc0a94967abd91c6fe2c6a8ce8
    Reviewed-on: https://gerrit.libreoffice.org/23140Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
    Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
    e94d5233
arrdecl.hxx 1.14 KB