summaryrefslogtreecommitdiff
path: root/hwpfilter/source/htags.h
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source/htags.h')
-rw-r--r--hwpfilter/source/htags.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/hwpfilter/source/htags.h b/hwpfilter/source/htags.h
index 292897b47bcd..5d044ee8666e 100644
--- a/hwpfilter/source/htags.h
+++ b/hwpfilter/source/htags.h
@@ -20,6 +20,8 @@
#ifndef INCLUDED_HWPFILTER_SOURCE_HTAGS_H
#define INCLUDED_HWPFILTER_SOURCE_HTAGS_H
+#include <memory>
+
class HWPFile;
/**
* @short Embedded image
@@ -29,7 +31,7 @@ struct EmPicture
size_t size;
char name[16];
char type[16];
- uchar *data;
+ std::unique_ptr<uchar[]> data;
explicit EmPicture(size_t size);
~EmPicture(void);
@@ -58,7 +60,7 @@ struct OlePicture
#ifdef _WIN32
IStorage *pis;
#else
- char *pis;
+ std::unique_ptr<char[]> pis;
#endif
explicit OlePicture(int tsize);
~OlePicture(void);