Home GnuPG
Diffusion GpgOL e5a3717ab023

Fix a possible crash when reactivating gpgol

Description

Fix a possible crash when reactivating gpgol

* src/gpgoladdin.cpp (GpgolAddin::invalidateRibbons)
(GpgolAddin::addRibbon): New.
(g_ribbon_uis): Removed.

This keeps the ribbon ui in a member variable so that they
are cleared out when the GpgolAddin class is remvoved on
unload.

Fixes a potential crash when a user would activate gpgol
after deactivating it in the same outlook session and
stale ribbon ui pointers would be accessed.

(cherry picked from commit 50c514d6bd6026076f5f467b7d8523dff2ce97aa)

Details

Provenance
aheineckeAuthored on Sep 7 2018, 9:56 AM
Parents
rO2da40322c261: Thou shalt not push before compiling
Branches
Unknown
Tags
Unknown