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
cf68c2a3
Commit
cf68c2a3
authored
Jul 31, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memleak.
parent
03967e7f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
modules/video_filter/logo.c
modules/video_filter/logo.c
+2
-0
modules/video_filter/rss.c
modules/video_filter/rss.c
+5
-0
modules/video_output/image.c
modules/video_output/image.c
+1
-0
No files found.
modules/video_filter/logo.c
View file @
cf68c2a3
...
@@ -331,6 +331,8 @@ static int Create( vlc_object_t *p_this )
...
@@ -331,6 +331,8 @@ static int Create( vlc_object_t *p_this )
if
(
!
p_logo_list
->
psz_filename
||
!*
p_logo_list
->
psz_filename
)
if
(
!
p_logo_list
->
psz_filename
||
!*
p_logo_list
->
psz_filename
)
{
{
msg_Err
(
p_vout
,
"logo file not specified"
);
msg_Err
(
p_vout
,
"logo file not specified"
);
free
(
p_logo_list
->
psz_filename
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
modules/video_filter/rss.c
View file @
cf68c2a3
...
@@ -266,6 +266,7 @@ static int CreateFilter( vlc_object_t *p_this )
...
@@ -266,6 +266,7 @@ static int CreateFilter( vlc_object_t *p_this )
{
{
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
->
psz_urls
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
...
@@ -277,6 +278,7 @@ static int CreateFilter( vlc_object_t *p_this )
...
@@ -277,6 +278,7 @@ static int CreateFilter( vlc_object_t *p_this )
free
(
p_sys
->
psz_marquee
);
free
(
p_sys
->
psz_marquee
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
->
psz_urls
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
...
@@ -301,6 +303,7 @@ static int CreateFilter( vlc_object_t *p_this )
...
@@ -301,6 +303,7 @@ static int CreateFilter( vlc_object_t *p_this )
free
(
p_sys
->
psz_marquee
);
free
(
p_sys
->
psz_marquee
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
->
psz_urls
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -312,6 +315,7 @@ static int CreateFilter( vlc_object_t *p_this )
...
@@ -312,6 +315,7 @@ static int CreateFilter( vlc_object_t *p_this )
free
(
p_sys
->
psz_marquee
);
free
(
p_sys
->
psz_marquee
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
->
psz_urls
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -324,6 +328,7 @@ static int CreateFilter( vlc_object_t *p_this )
...
@@ -324,6 +328,7 @@ static int CreateFilter( vlc_object_t *p_this )
FreeRSS
(
p_filter
);
FreeRSS
(
p_filter
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
->
psz_urls
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
modules/video_output/image.c
View file @
cf68c2a3
...
@@ -174,6 +174,7 @@ static int Create( vlc_object_t *p_this )
...
@@ -174,6 +174,7 @@ static int Create( vlc_object_t *p_this )
{
{
msg_Err
(
p_this
,
"unable to create image handler"
)
;
msg_Err
(
p_this
,
"unable to create image handler"
)
;
FREENULL
(
p_vout
->
p_sys
->
psz_prefix
);
FREENULL
(
p_vout
->
p_sys
->
psz_prefix
);
FREENULL
(
p_vout
->
p_sys
->
psz_format
);
FREENULL
(
p_vout
->
p_sys
);
FREENULL
(
p_vout
->
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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