Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
94e3a9b9
Commit
94e3a9b9
authored
Oct 08, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed another bunch of memory leaks.
parent
dbe51edf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
include/vlc_es.h
include/vlc_es.h
+3
-1
modules/codec/faad.c
modules/codec/faad.c
+1
-0
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+7
-4
modules/demux/mpeg/mpga.c
modules/demux/mpeg/mpga.c
+4
-0
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+3
-0
No files found.
include/vlc_es.h
View file @
94e3a9b9
...
...
@@ -245,7 +245,9 @@ static inline void es_format_Copy( es_format_t *dst, es_format_t *src )
}
dst
->
i_extra_languages
=
src
->
i_extra_languages
;
dst
->
p_extra_languages
=
(
extra_languages_t
*
)
malloc
(
dst
->
i_extra_languages
*
sizeof
(
*
dst
->
p_extra_languages
)
);
if
(
dst
->
i_extra_languages
)
dst
->
p_extra_languages
=
(
extra_languages_t
*
)
malloc
(
dst
->
i_extra_languages
*
sizeof
(
*
dst
->
p_extra_languages
));
for
(
i
=
0
;
i
<
dst
->
i_extra_languages
;
i
++
)
{
if
(
src
->
p_extra_languages
[
i
].
psz_language
)
dst
->
p_extra_languages
[
i
].
psz_language
=
strdup
(
src
->
p_extra_languages
[
i
].
psz_language
);
...
...
modules/codec/faad.c
View file @
94e3a9b9
...
...
@@ -404,6 +404,7 @@ static void Close( vlc_object_t *p_this )
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
faacDecClose
(
p_sys
->
hfaad
);
if
(
p_sys
->
p_buffer
)
free
(
p_sys
->
p_buffer
);
free
(
p_sys
);
}
...
...
modules/demux/avi/libavi.c
View file @
94e3a9b9
...
...
@@ -426,12 +426,15 @@ static int AVI_ChunkRead_strd( stream_t *s, avi_chunk_t *p_chk )
{
AVI_READCHUNK_ENTER
;
p_chk
->
strd
.
p_data
=
malloc
(
p_chk
->
common
.
i_chunk_size
);
memcpy
(
p_chk
->
strd
.
p_data
,
p_buff
+
8
,
p_chk
->
common
.
i_chunk_size
);
memcpy
(
p_chk
->
strd
.
p_data
,
p_buff
+
8
,
p_chk
->
common
.
i_chunk_size
);
AVI_READCHUNK_EXIT
(
VLC_SUCCESS
);
}
static
void
AVI_ChunkFree_strd
(
avi_chunk_t
*
p_chk
)
{
if
(
p_chk
->
strd
.
p_data
)
free
(
p_chk
->
strd
.
p_data
);
}
static
int
AVI_ChunkRead_idx1
(
stream_t
*
s
,
avi_chunk_t
*
p_chk
)
{
unsigned
int
i_count
,
i_index
;
...
...
@@ -651,7 +654,7 @@ static struct
{
AVIFOURCC_avih
,
AVI_ChunkRead_avih
,
AVI_ChunkFree_nothing
},
{
AVIFOURCC_strh
,
AVI_ChunkRead_strh
,
AVI_ChunkFree_nothing
},
{
AVIFOURCC_strf
,
AVI_ChunkRead_strf
,
AVI_ChunkFree_strf
},
{
AVIFOURCC_strd
,
AVI_ChunkRead_strd
,
AVI_ChunkFree_
nothing
},
{
AVIFOURCC_strd
,
AVI_ChunkRead_strd
,
AVI_ChunkFree_
strd
},
{
AVIFOURCC_idx1
,
AVI_ChunkRead_idx1
,
AVI_ChunkFree_idx1
},
{
AVIFOURCC_indx
,
AVI_ChunkRead_indx
,
AVI_ChunkFree_indx
},
{
AVIFOURCC_JUNK
,
AVI_ChunkRead_nothing
,
AVI_ChunkFree_nothing
},
...
...
modules/demux/mpeg/mpga.c
View file @
94e3a9b9
...
...
@@ -285,7 +285,9 @@ static int Demux( demux_t *p_demux )
{
p_sys
->
b_start
=
VLC_FALSE
;
p_block_in
=
p_sys
->
p_block_in
;
p_sys
->
p_block_in
=
NULL
;
p_block_out
=
p_sys
->
p_block_out
;
p_sys
->
p_block_out
=
NULL
;
}
else
{
...
...
@@ -337,6 +339,8 @@ static void Close( vlc_object_t * p_this )
DESTROY_PACKETIZER
(
p_sys
->
p_packetizer
);
if
(
p_sys
->
meta
)
vlc_meta_Delete
(
p_sys
->
meta
);
if
(
p_sys
->
p_block_in
)
block_Release
(
p_sys
->
p_block_in
);
if
(
p_sys
->
p_block_out
)
block_Release
(
p_sys
->
p_block_out
);
free
(
p_sys
);
}
...
...
modules/video_output/x11/xcommon.c
View file @
94e3a9b9
...
...
@@ -1094,6 +1094,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
XStoreName
(
p_vout
->
p_sys
->
p_display
,
p_win
->
base_window
,
val
.
psz_string
);
}
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
}
}
}
...
...
@@ -2116,6 +2117,8 @@ static int InitDisplay( vout_thread_t *p_vout )
}
}
}
if
(
p_formats
)
XFree
(
p_formats
);
break
;
}
p_vout
->
p_sys
->
p_visual
=
p_xvisual
->
visual
;
...
...
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