Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7399dfa9
Commit
7399dfa9
authored
Feb 25, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Mark free memory if heap warnings are turned on.
parent
ed78892e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
jsutils.c
dlls/jscript/jsutils.c
+9
-0
No files found.
dlls/jscript/jsutils.c
View file @
7399dfa9
...
...
@@ -27,6 +27,7 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
jscript
);
WINE_DECLARE_DEBUG_CHANNEL
(
heap
);
const
char
*
debugstr_variant
(
const
VARIANT
*
v
)
{
...
...
@@ -51,6 +52,7 @@ const char *debugstr_variant(const VARIANT *v)
}
#define MIN_BLOCK_SIZE 128
#define ARENA_FREE_FILLER 0xaa
static
inline
DWORD
block_size
(
DWORD
block
)
{
...
...
@@ -139,6 +141,13 @@ void jsheap_clear(jsheap_t *heap)
heap_free
(
tmp
);
}
if
(
WARN_ON
(
heap
))
{
DWORD
i
;
for
(
i
=
0
;
i
<
heap
->
block_cnt
;
i
++
)
memset
(
heap
->
blocks
[
i
],
ARENA_FREE_FILLER
,
block_size
(
i
));
}
heap
->
last_block
=
heap
->
offset
=
0
;
heap
->
mark
=
FALSE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment