doc: Add an example for circumventing problems with Windows heaps

This commit is contained in:
Petri Lehtinen
2013-08-06 08:11:53 +03:00
parent 71676acd0b
commit 49ad5328c7

View File

@@ -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::