From 7696a4678e1eee59488649ef20f7fbb4d7d3fc0c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 29 Apr 2013 11:52:09 +0100 Subject: Add Memento build option to Android build. Fix memory leaks. Following up on a report from a potential customer, fix various places in mupdf.c where we were leaking memory (devices not freed, context not properly freed etc). In order to track this down, I added a Memento build - just do: ndk-build MEMENTO=1 when building. This only checks for leaks, not for memory overwrites by default as it uses MEMENTO_LEAKONLY to avoid any possibility of the android kernel killing stuff for being too slow or using too much memory. --- fitz/memento.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fitz/memento.h') diff --git a/fitz/memento.h b/fitz/memento.h index 4831349b..75354384 100644 --- a/fitz/memento.h +++ b/fitz/memento.h @@ -137,6 +137,12 @@ #include +#ifdef __ANDROID__ +#define MEMENTO_ANDROID +#include +#include +#endif + #define MEMENTO_H #ifndef MEMENTO_UNDERLYING_MALLOC -- cgit v1.2.3