From a8f8c542a0eb43e57bb3f8200d562abadf4dff8c Mon Sep 17 00:00:00 2001 From: JJones780 Date: Wed, 13 Feb 2019 06:36:34 -0700 Subject: [PATCH] Was missing XOJ_RELEASE. --- src/gui/LayoutMapper.cpp | 6 ++++++ src/gui/LayoutMapper.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/gui/LayoutMapper.cpp b/src/gui/LayoutMapper.cpp index d2906c75..05ea71f2 100644 --- a/src/gui/LayoutMapper.cpp +++ b/src/gui/LayoutMapper.cpp @@ -26,6 +26,12 @@ LayoutMapper::LayoutMapper( int pages, int numRows, int numCols, bool useRows , } +LayoutMapper::~LayoutMapper() +{ + XOJ_RELEASE_TYPE(LayoutMapper); +} + + void LayoutMapper::layoutMapperInit( int pages, int numRows, int numCols, bool useRows , LayoutType type, bool isPaired, int firstPageOffset) { diff --git a/src/gui/LayoutMapper.h b/src/gui/LayoutMapper.h index cec74492..f4f76bc9 100644 --- a/src/gui/LayoutMapper.h +++ b/src/gui/LayoutMapper.h @@ -90,6 +90,9 @@ public: + virtual ~LayoutMapper(); + + /** * Map page location to document index *