Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openjazz
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
openjazz
Commits
e5e4e12c
Commit
e5e4e12c
authored
Apr 14, 2010
by
anotherguest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FForgot to delete those animations and frames properly.
parent
4c459787
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
scene.cpp
src/scene/scene.cpp
+12
-2
No files found.
src/scene/scene.cpp
View file @
e5e4e12c
...
...
@@ -50,7 +50,6 @@ SceneFrame::SceneFrame(int frameType, unsigned char* frameData, int frameSize) {
SceneFrame
::~
SceneFrame
()
{
delete
[]
frameData
;
if
(
next
)
delete
next
;
}
void
SceneAnimation
::
addFrame
(
int
frameType
,
unsigned
char
*
frameData
,
int
frameSize
)
{
...
...
@@ -94,7 +93,17 @@ SceneAnimation::~SceneAnimation ()
{
if
(
next
)
delete
next
;
if
(
sceneFrames
)
delete
sceneFrames
;
if
(
sceneFrames
)
{
SceneFrame
*
frame
=
sceneFrames
;
SceneFrame
*
nextFrame
=
NULL
;
while
(
frame
)
{
nextFrame
=
frame
->
next
;
delete
frame
;
frame
=
NULL
;
frame
=
nextFrame
;
}
}
if
(
background
)
SDL_FreeSurface
(
background
);
}
...
...
@@ -235,6 +244,7 @@ Scene::~Scene () {
if
(
images
)
delete
images
;
if
(
palettes
)
delete
palettes
;
if
(
animations
)
delete
animations
;
}
...
...
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