diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 09:15:20 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 09:15:20 +0200 |
commit | 5cba3372881994b5afa96449237aab80cc424e6d (patch) | |
tree | 34284cca22e42410a0dd375a0cfdb02e3b94fa7c /common/pipeline.h | |
parent | ac61e46c81e248841829adfc63b1804b9df6feb1 (diff) | |
download | sink-5cba3372881994b5afa96449237aab80cc424e6d.tar.gz sink-5cba3372881994b5afa96449237aab80cc424e6d.zip |
Less memory leaking with unique_ptr
Diffstat (limited to 'common/pipeline.h')
-rw-r--r-- | common/pipeline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/pipeline.h b/common/pipeline.h index d04d795..ef89cf0 100644 --- a/common/pipeline.h +++ b/common/pipeline.h | |||
@@ -72,7 +72,7 @@ signals: | |||
72 | 72 | ||
73 | private: | 73 | private: |
74 | class Private; | 74 | class Private; |
75 | Private *const d; | 75 | const std::unique_ptr<Private> d; |
76 | }; | 76 | }; |
77 | 77 | ||
78 | class SINK_EXPORT Preprocessor | 78 | class SINK_EXPORT Preprocessor |
@@ -103,7 +103,7 @@ protected: | |||
103 | private: | 103 | private: |
104 | friend class Pipeline; | 104 | friend class Pipeline; |
105 | class Private; | 105 | class Private; |
106 | Private *const d; | 106 | const std::unique_ptr<Private> d; |
107 | }; | 107 | }; |
108 | 108 | ||
109 | template<typename DomainType> | 109 | template<typename DomainType> |