Skip to content

Commit 0bfe12d

Browse files
committed
Fixed the manual related to switching off memory leak detector
1 parent 62edc3c commit 0bfe12d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manual.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,17 +328,17 @@ You can do the same by turning it off on a test by test basis, by adding this to
328328

329329
void setup()
330330
{
331-
MemoryLeakWarningPlugin::turnOffNewDeleteOverloads();
331+
MemoryLeakWarningPlugin::saveAndDisableNewDeleteOverloads();
332332
}
333333

334334
void teardown()
335335
{
336-
MemoryLeakWarningPlugin::turnOnNewDeleteOverloads();
336+
MemoryLeakWarningPlugin::restoreNewDeleteOverloads();
337337
}
338338

339339
{% endhighlight %}
340340

341-
(Do not forget to turn it on in the teardown again!)
341+
(Do not forget to restore it in the teardown again!)
342342

343343
If you want to completely disable memory leak detection then you can do so by building CppUTest with "configure --disable-memory-leak-detection" or passing -DCPPUTEST_MEM_LEAK_DETECTION_DISABLED to the compiler when compiling CppUTest.
344344

0 commit comments

Comments
 (0)