diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-30 11:20:00 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-30 11:20:00 -0700 |
commit | 83fa467a867c879f75447d99bc99f5f8831026f2 (patch) | |
tree | 1da26510f3e805f06862f27d8b4f6bb8ad03ad42 /xfa/src/fgas/include/fx_mem.h | |
parent | 6fc7919796b68d5264030250875dce2358605af1 (diff) | |
download | pdfium-83fa467a867c879f75447d99bc99f5f8831026f2.tar.xz |
Fix segv in CFX_BaseArray::~CFX_BaseArray
One can't blatantly memset() a class to zero if its
parent contains a vtable.
Fix some IWYU along the way.
Kill some casts along the way.
BUG=pdfium:259
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1416943007 .
Diffstat (limited to 'xfa/src/fgas/include/fx_mem.h')
-rw-r--r-- | xfa/src/fgas/include/fx_mem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xfa/src/fgas/include/fx_mem.h b/xfa/src/fgas/include/fx_mem.h index fe52489c6b..313fc935cc 100644 --- a/xfa/src/fgas/include/fx_mem.h +++ b/xfa/src/fgas/include/fx_mem.h @@ -6,6 +6,9 @@ #ifndef _FX_MEMORY
#define _FX_MEMORY
+
+#include "../../../../core/include/fxcrt/fx_memory.h" // For FX_Alloc().
+
class IFX_MEMAllocator;
class CFX_Target;
enum FX_ALLOCTYPE {
|