Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
7c0da764
Commit
7c0da764
authored
Feb 26, 2018
by
Chaosus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 3 memory leaks
parent
7568a455
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
README.md
thirdparty/README.md
+9
-0
b2Polygon.cpp
thirdparty/b2d_convexdecomp/b2Polygon.cpp
+6
-1
EtcFilter.cpp
thirdparty/etc2comp/EtcFilter.cpp
+3
-0
mkvparser.cc
thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc
+3
-1
No files found.
thirdparty/README.md
View file @
7c0da764
...
...
@@ -11,6 +11,9 @@ The files were adapted to Godot by removing the dependency on b2Math (replacing
it by b2Glue.h) and commenting out some verbose printf calls.
Upstream code has not changed in 10 years, no need to keep track of changes.
Important: Some files have Godot-made changes.
They are marked with
`// -- GODOT start --`
and
`// -- GODOT end --`
comments.
## bullet
...
...
@@ -69,6 +72,9 @@ Files extracted from upstream source:
-
all .cpp and .h files in EtcLib/
-
README.md, LICENSE, AUTHORS
Important: Some files have Godot-made changes.
They are marked with
`// -- GODOT start --`
and
`// -- GODOT end --`
comments.
## fonts
...
...
@@ -165,6 +171,9 @@ Files extracted from upstream source:
TODO.
Important: Some files have Godot-made changes.
They are marked with
`// -- GODOT start --`
and
`// -- GODOT end --`
comments.
## libtheora
...
...
thirdparty/b2d_convexdecomp/b2Polygon.cpp
View file @
7c0da764
...
...
@@ -1342,7 +1342,12 @@ b2Polygon TraceEdge(b2Polygon* p){
if
(
nodes
[
j
].
nConnected
==
0
)
continue
;
b2Vec2
diff
=
nodes
[
i
].
position
-
nodes
[
j
].
position
;
if
(
diff
.
LengthSquared
()
<=
COLLAPSE_DIST_SQR
){
if
(
nActive
<=
3
)
return
b2Polygon
();
if
(
nActive
<=
3
)
{
// -- GODOT start --
delete
[]
nodes
;
// -- GODOT end --
return
b2Polygon
();
}
//printf("Found dupe, %d left\n",nActive);
--
nActive
;
foundDupe
=
true
;
...
...
thirdparty/etc2comp/EtcFilter.cpp
View file @
7c0da764
...
...
@@ -228,6 +228,9 @@ int FilterTwoPass( RGBCOLOR *pSrcImage, int srcWidth, int srcHeight,
pTempImage
=
(
RGBCOLOR
*
)
malloc
(
destWidth
*
srcHeight
*
sizeof
(
RGBCOLOR
)
);
if
(
pTempImage
==
NULL
)
{
// -- GODOT start --
free
(
contrib
);
// -- GODOT end --
return
0
;
}
...
...
thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc
View file @
7c0da764
...
...
@@ -1284,7 +1284,9 @@ long Segment::DoLoadCluster(long long& pos, long& len) {
pos
+=
cluster_size
;
m_pos
=
pos
;
// -- GODOT start --
delete
pCluster
;
// -- GODOT end --
if
(
segment_stop
>
0
&&
m_pos
>
segment_stop
)
return
E_FILE_FORMAT_INVALID
;
...
...
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