-rw-r--r-- | microkde/kstaticdeleter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/microkde/kstaticdeleter.h b/microkde/kstaticdeleter.h index 190f3e4..dfd3929 100644 --- a/microkde/kstaticdeleter.h +++ b/microkde/kstaticdeleter.h | |||
@@ -30,4 +30,6 @@ class KStaticDeleter | |||
30 | KStaticDeleter() {}; | 30 | KStaticDeleter() {}; |
31 | type *setObject( type *obj, bool isArray = false) { return obj; } | 31 | type *setObject( type *obj, bool isArray = false) { _mobj = obj;return obj; } |
32 | virtual ~KStaticDeleter() {}; | 32 | virtual ~KStaticDeleter() {delete _mobj;}; |
33 | private: | ||
34 | type* _mobj; | ||
33 | }; | 35 | }; |