diff options
author | Soeren Moch <smoch@web.de> | 2021-02-13 14:03:29 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-02-16 11:51:04 +0100 |
commit | 52b25fa9d45bb50d476c3d9e4aad78b9d87ed990 (patch) | |
tree | 1e48462e943e0fc7286251e21fa3ec91824b584b | |
parent | 05c188d3e03f41fcfdcb1e070a638c55d8cb491e (diff) | |
download | skin-nopacity-52b25fa9d45bb50d476c3d9e4aad78b9d87ed990.tar.gz skin-nopacity-52b25fa9d45bb50d476c3d9e4aad78b9d87ed990.tar.bz2 |
Cleanup geo and font manager delete
Delete global geoManager and fontManager in the same class (cNopacity) where
they were created.
Signed-off-by: Soeren Moch <smoch@web.de>
-rw-r--r-- | nopacity.c | 5 | ||||
-rw-r--r-- | nopacity.h | 1 | ||||
-rw-r--r-- | skinnopacity.c | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -26,6 +26,11 @@ cNopacity::cNopacity(cImageCache *imgCache) : cSkin("nOpacity", &::Theme) { imgCache->CreateCache(); } +cNopacity::~cNopacity() { + delete geoManager; + delete fontManager; +} + const char *cNopacity::Description(void) { return "nOpacity"; } @@ -14,6 +14,7 @@ private: void ReloadCaches(void); public: cNopacity(cImageCache *imgCache); + ~cNopacity(void); virtual const char *Description(void); virtual cSkinDisplayChannel *DisplayChannel(bool WithInfo); virtual cSkinDisplayMenu *DisplayMenu(void); diff --git a/skinnopacity.c b/skinnopacity.c index c8bbc74..3999e31 100644 --- a/skinnopacity.c +++ b/skinnopacity.c @@ -115,8 +115,6 @@ bool cPluginNopacity::Start(void) { void cPluginNopacity::Stop(void) { delete imgCache; - delete geoManager; - delete fontManager; } void cPluginNopacity::Housekeeping(void) { |