summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hstream.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-04 15:50:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-04 20:13:53 +0100
commit24736e724e98a3ed63bad5e1917f40302b1de24e (patch)
treec5941a779ac6e439a395f3ac769c8b6d8dfcad56 /hwpfilter/source/hstream.hxx
parent90911df79efe9a069c7a692d0d1109e67a1da961 (diff)
cppcheck: memleakOnRealloc
Change-Id: Ibdf762b0d397f798372d9bf882aa82a6e5fd0229
Diffstat (limited to 'hwpfilter/source/hstream.hxx')
-rw-r--r--hwpfilter/source/hstream.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/hwpfilter/source/hstream.hxx b/hwpfilter/source/hstream.hxx
index 426d39650939..4374b92674e3 100644
--- a/hwpfilter/source/hstream.hxx
+++ b/hwpfilter/source/hstream.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_HWPFILTER_SOURCE_HSTREAM_H
#define INCLUDED_HWPFILTER_SOURCE_HSTREAM_H
+#include <vector>
+
typedef unsigned char byte;
/**
* Stream class
@@ -28,7 +30,6 @@ class HStream
{
public:
HStream();
- virtual ~HStream();
/**
*
@@ -49,7 +50,7 @@ class HStream
private:
int size;
- byte *seq;
+ std::vector<byte> seq;
int pos;
};
#endif