Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f52d10e5
Commit
f52d10e5
authored
Nov 30, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtag: don't return anything from xtag_free
parent
c109dcf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
modules/codec/cmml/xtag.c
modules/codec/cmml/xtag.c
+8
-10
No files found.
modules/codec/cmml/xtag.c
View file @
f52d10e5
...
...
@@ -79,7 +79,7 @@ struct _XTagParser {
char
*
end
;
};
XTag
*
xtag_free
(
XTag
*
xtag
);
void
xtag_free
(
XTag
*
xtag
);
XTag
*
xtag_new_parse
(
const
char
*
s
,
int
n
);
char
*
xtag_get_name
(
XTag
*
xtag
);
char
*
xtag_get_pcdata
(
XTag
*
xtag
);
...
...
@@ -410,20 +410,20 @@ xtag_parse_tag (XTagParser * parser)
return
tag
;
}
XTag
*
xtag_free
(
XTag
*
xtag
)
void
xtag_free
(
XTag
*
xtag
)
{
XList
*
l
;
XAttribute
*
attr
;
XTag
*
child
;
if
(
xtag
==
NULL
)
return
NULL
;
if
(
!
xtag
)
return
;
free
(
xtag
->
name
);
free
(
xtag
->
pcdata
);
for
(
l
=
xtag
->
attributes
;
l
;
l
=
l
->
next
)
{
if
((
attr
=
(
XAttribute
*
)
l
->
data
)
!=
NULL
)
{
for
(
l
=
xtag
->
attributes
;
l
;
l
=
l
->
next
)
{
if
((
attr
=
(
XAttribute
*
)
l
->
data
)
!=
NULL
)
{
free
(
attr
->
name
);
free
(
attr
->
value
);
free
(
attr
);
...
...
@@ -433,13 +433,11 @@ xtag_free (XTag * xtag)
for
(
l
=
xtag
->
children
;
l
;
l
=
l
->
next
)
{
child
=
(
XTag
*
)
l
->
data
;
xtag_free
(
child
);
xtag_free
(
child
);
}
xlist_free
(
xtag
->
children
);
free
(
xtag
);
return
NULL
;
free
(
xtag
);
}
XTag
*
...
...
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