r5365 jmb - /trunk/libparserutils/include/parserutils/input/inputstream.h

netsurf at semichrome.net netsurf at semichrome.net
Wed Sep 17 17:17:03 BST 2008


Author: jmb
Date: Wed Sep 17 11:17:03 2008
New Revision: 5365

URL: http://source.netsurf-browser.org?rev=5365&view=rev
Log:
Only randomise the inputstream if RANDOMISE_INPUTSTREAM is defined.
This will prevent exhorbitant memory leakage when running make test in 
client code.

Modified:
    trunk/libparserutils/include/parserutils/input/inputstream.h

Modified: trunk/libparserutils/include/parserutils/input/inputstream.h
URL: http://source.netsurf-browser.org/trunk/libparserutils/include/parserutils/input/inputstream.h?rev=5365&r1=5364&r2=5365&view=diff
==============================================================================
--- trunk/libparserutils/include/parserutils/input/inputstream.h (original)
+++ trunk/libparserutils/include/parserutils/input/inputstream.h Wed Sep 17 11:17:03 2008
@@ -93,7 +93,9 @@
 	fprintf(stdout, "Peek: len: %zu cur: %u off: %zu\n",
 			stream->utf8->length, stream->cursor, offset);
 #endif
+#ifdef RANDOMISE_INPUTSTREAM
 	parserutils_buffer_randomise(stream->utf8);
+#endif
 #endif
 
 #define IS_ASCII(x) (((x) & 0x80) == 0)




More information about the netsurf-commits mailing list