Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
34293972
Commit
34293972
authored
Sep 30, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove FREE() macro, since free() does the same internally
parent
3f07af6a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
27 deletions
+27
-27
modules/access_output/http.c
modules/access_output/http.c
+1
-1
modules/codec/cinepak.c
modules/codec/cinepak.c
+1
-1
modules/demux/playlist/qtl.c
modules/demux/playlist/qtl.c
+12
-12
modules/misc/profile_parser.c
modules/misc/profile_parser.c
+2
-2
src/input/subtitles.c
src/input/subtitles.c
+10
-10
src/interface/interaction.c
src/interface/interaction.c
+1
-1
No files found.
modules/access_output/http.c
View file @
34293972
...
@@ -358,7 +358,7 @@ static void Close( vlc_object_t * p_this )
...
@@ -358,7 +358,7 @@ static void Close( vlc_object_t * p_this )
httpd_StreamDelete
(
p_sys
->
p_httpd_stream
);
httpd_StreamDelete
(
p_sys
->
p_httpd_stream
);
httpd_HostDelete
(
p_sys
->
p_httpd_host
);
httpd_HostDelete
(
p_sys
->
p_httpd_host
);
FREE
(
p_sys
->
p_header
);
free
(
p_sys
->
p_header
);
msg_Dbg
(
p_access
,
"Close"
);
msg_Dbg
(
p_access
,
"Close"
);
...
...
modules/codec/cinepak.c
View file @
34293972
...
@@ -406,7 +406,7 @@ static int cinepak_decode_frame( cinepak_context_t *p_context,
...
@@ -406,7 +406,7 @@ static int cinepak_decode_frame( cinepak_context_t *p_context,
int
i
;
int
i
;
for
(
i
=
0
;
i
<
3
;
i
++
)
for
(
i
=
0
;
i
<
3
;
i
++
)
{
{
FREE
(
p_context
->
p_pix
[
i
]
);
free
(
p_context
->
p_pix
[
i
]
);
}
}
p_context
->
i_width
=
i_width
;
p_context
->
i_width
=
i_width
;
...
...
modules/demux/playlist/qtl.c
View file @
34293972
...
@@ -158,7 +158,7 @@ static int Demux( demux_t *p_demux )
...
@@ -158,7 +158,7 @@ static int Demux( demux_t *p_demux )
{
{
msg_Err
(
p_demux
,
"invalid root node %i, %s"
,
msg_Err
(
p_demux
,
"invalid root node %i, %s"
,
xml_ReaderNodeType
(
p_xml_reader
),
psz_eltname
);
xml_ReaderNodeType
(
p_xml_reader
),
psz_eltname
);
FREE
(
psz_eltname
);
free
(
psz_eltname
);
/* second line has <?quicktime tag ... so we try to skip it */
/* second line has <?quicktime tag ... so we try to skip it */
msg_Dbg
(
p_demux
,
"trying to read one more node"
);
msg_Dbg
(
p_demux
,
"trying to read one more node"
);
...
@@ -169,11 +169,11 @@ static int Demux( demux_t *p_demux )
...
@@ -169,11 +169,11 @@ static int Demux( demux_t *p_demux )
{
{
msg_Err
(
p_demux
,
"invalid root node %i, %s"
,
msg_Err
(
p_demux
,
"invalid root node %i, %s"
,
xml_ReaderNodeType
(
p_xml_reader
),
psz_eltname
);
xml_ReaderNodeType
(
p_xml_reader
),
psz_eltname
);
FREE
(
psz_eltname
);
free
(
psz_eltname
);
return
-
1
;
return
-
1
;
}
}
}
}
FREE
(
psz_eltname
);
free
(
psz_eltname
);
while
(
xml_ReaderNextAttr
(
p_sys
->
p_xml_reader
)
==
VLC_SUCCESS
)
while
(
xml_ReaderNextAttr
(
p_sys
->
p_xml_reader
)
==
VLC_SUCCESS
)
{
{
...
@@ -182,8 +182,8 @@ static int Demux( demux_t *p_demux )
...
@@ -182,8 +182,8 @@ static int Demux( demux_t *p_demux )
if
(
!
psz_attrname
||
!
psz_attrvalue
)
if
(
!
psz_attrname
||
!
psz_attrvalue
)
{
{
FREE
(
psz_attrname
);
free
(
psz_attrname
);
FREE
(
psz_attrvalue
);
free
(
psz_attrvalue
);
return
-
1
;
return
-
1
;
}
}
...
@@ -318,8 +318,8 @@ static int Demux( demux_t *p_demux )
...
@@ -318,8 +318,8 @@ static int Demux( demux_t *p_demux )
msg_Dbg
(
p_demux
,
"Attribute %s with value %s isn't valid"
,
msg_Dbg
(
p_demux
,
"Attribute %s with value %s isn't valid"
,
psz_attrname
,
psz_attrvalue
);
psz_attrname
,
psz_attrvalue
);
}
}
FREE
(
psz_attrname
);
free
(
psz_attrname
);
FREE
(
psz_attrvalue
);
free
(
psz_attrvalue
);
}
}
msg_Dbg
(
p_demux
,
"autoplay: %s (unused by VLC)"
,
msg_Dbg
(
p_demux
,
"autoplay: %s (unused by VLC)"
,
...
@@ -369,11 +369,11 @@ static int Demux( demux_t *p_demux )
...
@@ -369,11 +369,11 @@ static int Demux( demux_t *p_demux )
p_sys
->
p_playlist
=
NULL
;
p_sys
->
p_playlist
=
NULL
;
FREE
(
psz_href
);
free
(
psz_href
);
FREE
(
psz_moviename
);
free
(
psz_moviename
);
FREE
(
psz_qtnext
);
free
(
psz_qtnext
);
FREE
(
psz_src
);
free
(
psz_src
);
FREE
(
psz_mimetype
);
free
(
psz_mimetype
);
return
-
1
;
/* Needed for correct operation of go back */
return
-
1
;
/* Needed for correct operation of go back */
}
}
...
...
modules/misc/profile_parser.c
View file @
34293972
...
@@ -74,7 +74,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -74,7 +74,7 @@ static int Open( vlc_object_t *p_this )
return
-
1
;
return
-
1
;
case
XML_READER_STARTELEM
:
case
XML_READER_STARTELEM
:
FREE
(
psz_elname
);
free
(
psz_elname
);
psz_elname
=
xml_ReaderName
(
p_reader
);
psz_elname
=
xml_ReaderName
(
p_reader
);
if
(
!
psz_elname
)
return
VLC_EGENERIC
;
if
(
!
psz_elname
)
return
VLC_EGENERIC
;
printf
(
"<%s"
,
psz_elname
);
printf
(
"<%s"
,
psz_elname
);
...
@@ -83,7 +83,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -83,7 +83,7 @@ static int Open( vlc_object_t *p_this )
case
XML_READER_TEXT
:
case
XML_READER_TEXT
:
break
;
break
;
case
XML_READER_ENDELEM
:
case
XML_READER_ENDELEM
:
FREE
(
psz_elname
);
free
(
psz_elname
);
psz_elname
=
xml_ReaderName
(
p_reader
);
psz_elname
=
xml_ReaderName
(
p_reader
);
if
(
!
psz_elname
)
return
VLC_EGENERIC
;
if
(
!
psz_elname
)
return
VLC_EGENERIC
;
printf
(
">"
);
printf
(
">"
);
...
...
src/input/subtitles.c
View file @
34293972
...
@@ -291,8 +291,8 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
...
@@ -291,8 +291,8 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
}
}
if
(
!
f_fname
||
!
f_dir
)
if
(
!
f_fname
||
!
f_dir
)
{
{
FREE
(
f_fname
);
free
(
f_fname
);
FREE
(
f_dir
);
free
(
f_dir
);
return
NULL
;
return
NULL
;
}
}
...
@@ -302,10 +302,10 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
...
@@ -302,10 +302,10 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
f_fname_trim
=
malloc
(
i_fname_len
+
1
);
f_fname_trim
=
malloc
(
i_fname_len
+
1
);
if
(
!
f_fname_noext
||
!
f_fname_trim
)
if
(
!
f_fname_noext
||
!
f_fname_trim
)
{
{
FREE
(
f_fname
);
free
(
f_fname
);
FREE
(
f_dir
);
free
(
f_dir
);
FREE
(
f_fname_noext
);
free
(
f_fname_noext
);
FREE
(
f_fname_trim
);
free
(
f_fname_trim
);
return
NULL
;
return
NULL
;
}
}
...
@@ -408,14 +408,14 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
...
@@ -408,14 +408,14 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
if
(
ppsz_dir_content
)
if
(
ppsz_dir_content
)
{
{
for
(
a
=
0
;
a
<
i_dir_content
;
a
++
)
for
(
a
=
0
;
a
<
i_dir_content
;
a
++
)
FREE
(
ppsz_dir_content
[
a
]
);
free
(
ppsz_dir_content
[
a
]
);
free
(
ppsz_dir_content
);
free
(
ppsz_dir_content
);
}
}
}
}
if
(
subdirs
)
if
(
subdirs
)
{
{
for
(
j
=
0
;
subdirs
[
j
];
j
++
)
for
(
j
=
0
;
subdirs
[
j
];
j
++
)
FREE
(
subdirs
[
j
]
);
free
(
subdirs
[
j
]
);
free
(
subdirs
);
free
(
subdirs
);
}
}
free
(
f_fname
);
free
(
f_fname
);
...
@@ -464,8 +464,8 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
...
@@ -464,8 +464,8 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
for
(
j
=
0
;
j
<
i_sub_count
;
j
++
)
for
(
j
=
0
;
j
<
i_sub_count
;
j
++
)
{
{
FREE
(
result
[
j
].
psz_fname
);
free
(
result
[
j
].
psz_fname
);
FREE
(
result
[
j
].
psz_ext
);
free
(
result
[
j
].
psz_ext
);
}
}
free
(
result
);
free
(
result
);
...
...
src/interface/interaction.c
View file @
34293972
...
@@ -302,7 +302,7 @@ void __intf_ProgressUpdate( vlc_object_t *p_this, int i_id,
...
@@ -302,7 +302,7 @@ void __intf_ProgressUpdate( vlc_object_t *p_this, int i_id,
return
;
return
;
}
}
FREE
(
p_dialog
->
psz_description
);
free
(
p_dialog
->
psz_description
);
p_dialog
->
psz_description
=
strdup
(
psz_status
);
p_dialog
->
psz_description
=
strdup
(
psz_status
);
p_dialog
->
val
.
f_float
=
f_pos
;
p_dialog
->
val
.
f_float
=
f_pos
;
...
...
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