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
92d71fdf
Commit
92d71fdf
authored
Oct 28, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/misc/freetype.c, src/video_output/vout_intf.c: fixed a couple of memory leaks.
parent
6b24b403
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
modules/misc/freetype.c
modules/misc/freetype.c
+6
-2
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+1
-1
No files found.
modules/misc/freetype.c
View file @
92d71fdf
...
...
@@ -420,7 +420,7 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
for
(
y
=
1
;
y
<
(
int
)
fmt
.
i_height
-
1
;
y
++
)
{
memcpy
(
p_top
,
p_dst
,
fmt
.
i_width
);
if
(
y
>
1
)
memcpy
(
p_top
,
p_dst
,
fmt
.
i_width
);
p_dst
+=
p_region
->
picture
.
Y_PITCH
;
left
=
0
;
...
...
@@ -615,7 +615,11 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
}
FT_Glyph_Get_CBox
(
tmp_glyph
,
ft_glyph_bbox_pixels
,
&
glyph_size
);
i_error
=
FT_Glyph_To_Bitmap
(
&
tmp_glyph
,
ft_render_mode_normal
,
0
,
1
);
if
(
i_error
)
continue
;
if
(
i_error
)
{
FT_Done_Glyph
(
tmp_glyph
);
continue
;
}
p_line
->
pp_glyphs
[
i
]
=
(
FT_BitmapGlyph
)
tmp_glyph
;
/* Do rest */
...
...
src/video_output/vout_intf.c
View file @
92d71fdf
...
...
@@ -265,7 +265,6 @@ void vout_IntfInit( vout_thread_t *p_vout )
vlc_ureduce
(
&
i_aspect_num
,
&
i_aspect_den
,
i_aspect
*
VOUT_ASPECT_FACTOR
,
VOUT_ASPECT_FACTOR
,
0
);
}
free
(
val
.
psz_string
);
if
(
!
i_aspect_num
||
!
i_aspect_den
)
i_aspect_num
=
i_aspect_den
=
1
;
p_vout
->
i_par_num
=
i_aspect_num
;
...
...
@@ -278,6 +277,7 @@ void vout_IntfInit( vout_thread_t *p_vout )
p_vout
->
i_par_num
,
p_vout
->
i_par_den
);
b_force_par
=
VLC_TRUE
;
}
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
/* Aspect-ratio object var */
var_Create
(
p_vout
,
"aspect-ratio"
,
VLC_VAR_STRING
|
...
...
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