From 49ad5328c7a8c5140abc59a4756f7c82950c850e Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Tue, 6 Aug 2013 08:11:53 +0300 Subject: [PATCH] doc: Add an example for circumventing problems with Windows heaps --- doc/apiref.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/apiref.rst b/doc/apiref.rst index d2475b2..0b2ee15 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -1419,7 +1419,12 @@ behavior is needed. Jansson's API functions to ensure that all memory operations use the same functions. -Examples: +**Examples:** + +Circumvent problems with different CRT heaps on Windows by using +application's :func:`malloc()` and :func:`free()`:: + + json_set_alloc_funcs(malloc, free); Use the `Boehm's conservative garbage collector`_ for memory operations::