summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Moch <smoch@web.de>2021-02-13 14:03:29 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-02-16 11:51:04 +0100
commit52b25fa9d45bb50d476c3d9e4aad78b9d87ed990 (patch)
tree1e48462e943e0fc7286251e21fa3ec91824b584b
parent05c188d3e03f41fcfdcb1e070a638c55d8cb491e (diff)
downloadskin-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.c5
-rw-r--r--nopacity.h1
-rw-r--r--skinnopacity.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/nopacity.c b/nopacity.c
index 2a910f4..c194cb8 100644
--- a/nopacity.c
+++ b/nopacity.c
@@ -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";
}
diff --git a/nopacity.h b/nopacity.h
index 1a924d9..b7db796 100644
--- a/nopacity.h
+++ b/nopacity.h
@@ -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) {