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-good
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-good
Commits
035aead2
Commit
035aead2
authored
May 14, 2010
by
Tim-Philipp Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpegenc: fix two leaks
Don't leak othercaps or jpegenc ref.
parent
dc2662e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ext/jpeg/gstjpegenc.c
ext/jpeg/gstjpegenc.c
+8
-2
No files found.
ext/jpeg/gstjpegenc.c
View file @
035aead2
...
...
@@ -342,8 +342,10 @@ gst_jpegenc_getcaps (GstPad * pad)
othercaps
=
gst_pad_get_allowed_caps
(
jpegenc
->
srcpad
);
if
(
othercaps
==
NULL
||
gst_caps_is_empty
(
othercaps
)
||
gst_caps_is_any
(
othercaps
))
return
gst_caps_copy
(
gst_pad_get_pad_template_caps
(
pad
));
gst_caps_is_empty
(
othercaps
)
||
gst_caps_is_any
(
othercaps
))
{
caps
=
gst_caps_copy
(
gst_pad_get_pad_template_caps
(
pad
));
goto
done
;
}
caps
=
gst_caps_new_empty
();
templ
=
gst_pad_get_pad_template_caps
(
pad
);
...
...
@@ -365,6 +367,10 @@ gst_jpegenc_getcaps (GstPad * pad)
gst_caps_merge_structure
(
caps
,
structure
);
}
}
done:
gst_caps_replace
(
&
othercaps
,
NULL
);
gst_object_unref
(
jpegenc
);
return
caps
;
...
...
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