Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
SRB2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
264
Issues
264
List
Board
Labels
Milestones
Merge Requests
74
Merge Requests
74
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
STJr
SRB2
Commits
c2de6841
Commit
c2de6841
authored
Dec 07, 2020
by
SteelT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double free occuring when unloading the intermission patches due to the same…
Fix double free occuring when unloading the intermission patches due to the same patch being cached twice
parent
d004515d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
y_inter.c
src/y_inter.c
+4
-2
No files found.
src/y_inter.c
View file @
c2de6841
...
...
@@ -1229,7 +1229,10 @@ void Y_StartIntermission(void)
data
.
coop
.
tics
=
players
[
consoleplayer
].
realtime
;
for
(
i
=
0
;
i
<
4
;
++
i
)
data
.
coop
.
bonuspatches
[
i
]
=
W_CachePatchName
(
data
.
coop
.
bonuses
[
i
].
patch
,
PU_PATCH
);
{
if
(
strlen
(
data
.
coop
.
bonuses
[
i
].
patch
))
data
.
coop
.
bonuspatches
[
i
]
=
W_CachePatchName
(
data
.
coop
.
bonuses
[
i
].
patch
,
PU_PATCH
);
}
data
.
coop
.
ptotal
=
W_CachePatchName
(
"YB_TOTAL"
,
PU_PATCH
);
// get act number
...
...
@@ -1733,7 +1736,6 @@ static void Y_SetNullBonus(player_t *player, y_bonus_t *bstruct)
{
(
void
)
player
;
memset
(
bstruct
,
0
,
sizeof
(
y_bonus_t
));
strncpy
(
bstruct
->
patch
,
"MISSING"
,
sizeof
(
bstruct
->
patch
));
}
//
...
...
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