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
b4e29cc5
Commit
b4e29cc5
authored
Sep 20, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_filter/logo.c: fixed memleak.
parent
a7c7b6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/video_filter/logo.c
modules/video_filter/logo.c
+3
-2
No files found.
modules/video_filter/logo.c
View file @
b4e29cc5
...
...
@@ -151,9 +151,8 @@ static picture_t *LoadPNG( vlc_object_t *p_this )
p_row_pointers
=
malloc
(
sizeof
(
png_bytep
)
*
i_height
);
for
(
i
=
0
;
i
<
(
int
)
i_height
;
i
++
)
{
p_row_pointers
[
i
]
=
malloc
(
4
*
(
i_bit_depth
+
7
)
/
8
*
i_width
);
}
png_read_image
(
p_png
,
p_row_pointers
);
png_read_end
(
p_png
,
p_end_info
);
...
...
@@ -166,6 +165,7 @@ static picture_t *LoadPNG( vlc_object_t *p_this )
i_width
,
i_height
,
VOUT_ASPECT_FACTOR
)
!=
VLC_SUCCESS
)
{
for
(
i
=
0
;
i
<
(
int
)
i_height
;
i
++
)
free
(
p_row_pointers
[
i
]
);
free
(
p_row_pointers
);
return
0
;
}
...
...
@@ -195,6 +195,7 @@ static picture_t *LoadPNG( vlc_object_t *p_this )
}
}
for
(
i
=
0
;
i
<
(
int
)
i_height
;
i
++
)
free
(
p_row_pointers
[
i
]
);
free
(
p_row_pointers
);
return
p_pic
;
}
...
...
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