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
912035aa
Commit
912035aa
authored
Aug 15, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memleak.
parent
c741c175
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
modules/misc/freetype.c
modules/misc/freetype.c
+2
-2
modules/misc/quartztext.c
modules/misc/quartztext.c
+2
-3
No files found.
modules/misc/freetype.c
View file @
912035aa
...
...
@@ -1862,10 +1862,10 @@ static int HandleFontAttributes( xml_reader_t *p_xml_reader,
i_font_alpha
=
strtol
(
psz_value
+
1
,
NULL
,
16
);
i_font_alpha
&=
0xff
;
}
}
free
(
psz_name
);
free
(
psz_value
);
}
}
rv
=
PushFont
(
p_fonts
,
psz_fontname
,
i_font_size
*
i_scale
/
1000
,
...
...
modules/misc/quartztext.c
View file @
912035aa
...
...
@@ -663,10 +663,10 @@ static int HandleFontAttributes( xml_reader_t *p_xml_reader,
i_font_alpha
=
strtol
(
psz_value
+
1
,
NULL
,
16
);
i_font_alpha
&=
0xff
;
}
}
free
(
psz_name
);
free
(
psz_value
);
}
}
rv
=
PushFont
(
p_fonts
,
psz_fontname
,
i_font_size
*
i_scale
/
1000
,
...
...
@@ -736,7 +736,6 @@ static int ProcessNodes( filter_t *p_filter,
break
;
case
XML_READER_ENDELEM
:
psz_node
=
xml_ReaderName
(
p_xml_reader
);
if
(
psz_node
)
{
if
(
!
strcasecmp
(
"font"
,
psz_node
)
)
...
...
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