diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-09 00:35:42 +0100 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-10 12:59:26 +0000 |
commit | 1a044b25c279236d9f67847ec6ad426d8c5aac13 (patch) | |
tree | 976653fc4df74d4a5b36d469d737e019ac0a1af2 /unotest | |
parent | fe73eff36718b6d99d0cf92d750c457872cc4dcc (diff) |
tdf#99352: dispose EditEngines when SfxApp dies
In an ideal world, by the time we reach DeInitVCL() there should be
neither non-null VclPtr nor EditEngine instances around. This fixes the
former for those VclPtrs owned by EditEngines, by disposing them when
SfxApplication is dying. The goal is -- for now -- to not have any
non-null VclPtrs around by DeInitVCL(), so we can e.g. assert() on that
to pick up regressions.
Should we one day have all EditEngines accounted for with proper smart
pointers that get torn down before DeInitVCL(), the Dispose() introduced
here might be removed again.
Change-Id: I47b17f7fd31fce2ac5fd6f6b146d356d7d07e677
Reviewed-on: https://gerrit.libreoffice.org/34985
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'unotest')
0 files changed, 0 insertions, 0 deletions