Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
6b0063aa
Commit
6b0063aa
authored
Jul 18, 2014
by
Youness Alaoui
Committed by
Sebastian Dröge
Jul 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appsrc: Fix memory leak with callback notify not being called in dispose
https://bugzilla.gnome.org/show_bug.cgi?id=733386
parent
69552ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
gst-libs/gst/app/gstappsrc.c
gst-libs/gst/app/gstappsrc.c
+8
-0
No files found.
gst-libs/gst/app/gstappsrc.c
View file @
6b0063aa
...
...
@@ -544,10 +544,18 @@ gst_app_src_dispose (GObject * obj)
GstAppSrc
*
appsrc
=
GST_APP_SRC_CAST
(
obj
);
GstAppSrcPrivate
*
priv
=
appsrc
->
priv
;
GST_OBJECT_LOCK
(
appsrc
);
if
(
priv
->
caps
)
{
gst_caps_unref
(
priv
->
caps
);
priv
->
caps
=
NULL
;
}
if
(
priv
->
notify
)
{
priv
->
notify
(
priv
->
user_data
);
}
priv
->
user_data
=
NULL
;
priv
->
notify
=
NULL
;
GST_OBJECT_UNLOCK
(
appsrc
);
gst_app_src_flush_queued
(
appsrc
);
G_OBJECT_CLASS
(
parent_class
)
->
dispose
(
obj
);
...
...
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