Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libbluray
Commits
5de3b439
Commit
5de3b439
authored
Oct 14, 2010
by
hpi1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added _free_ig_object()
parent
4a8998e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/libbluray/hdmv/hdmv_vm.c
src/libbluray/hdmv/hdmv_vm.c
+11
-9
No files found.
src/libbluray/hdmv/hdmv_vm.c
View file @
5de3b439
...
...
@@ -246,16 +246,21 @@ HDMV_VM *hdmv_vm_init(const char *disc_root, BD_REGISTERS *regs)
return
p
;
}
static
void
_free_ig_object
(
HDMV_VM
*
p
)
{
if
(
p
->
ig_object
)
{
X_FREE
(
p
->
ig_object
->
cmds
);
X_FREE
(
p
->
ig_object
);
}
}
void
hdmv_vm_free
(
HDMV_VM
**
p
)
{
if
(
p
&&
*
p
)
{
mobj_free
(
&
(
*
p
)
->
movie_objects
);
mobj_free
(
&
(
*
p
)
->
movie_objects
);
if
((
*
p
)
->
ig_object
)
{
X_FREE
((
*
p
)
->
ig_object
->
cmds
);
X_FREE
((
*
p
)
->
ig_object
);
}
_free_ig_object
(
*
p
);
X_FREE
(
*
p
);
}
...
...
@@ -889,10 +894,7 @@ int hdmv_vm_set_object(HDMV_VM *p, int num_nav_cmds, void *nav_cmds)
{
p
->
object
=
NULL
;
if
(
p
->
ig_object
)
{
X_FREE
(
p
->
ig_object
->
cmds
);
X_FREE
(
p
->
ig_object
);
}
_free_ig_object
(
p
);
if
(
nav_cmds
&&
num_nav_cmds
>
0
)
{
MOBJ_OBJECT
*
ig_object
=
calloc
(
1
,
sizeof
(
MOBJ_OBJECT
));
...
...
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