projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e29263e
)
fix caps leak
author
Johan Dahlin
<johan@gnome.org>
Tue, 15 Nov 2005 19:56:51 +0000
(19:56 +0000)
committer
Johan Dahlin
<johan@gnome.org>
Tue, 15 Nov 2005 19:56:51 +0000
(19:56 +0000)
Original commit message from CVS:
fix caps leak
ext/ogg/gstoggdemux.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggdemux.c
b/ext/ogg/gstoggdemux.c
index 38ed287c89592406777f9b4b26e1a3d28161aae5..cd5ebc9d307f1bb26e5d6b42330ba8658497cb94 100644
(file)
--- a/
ext/ogg/gstoggdemux.c
+++ b/
ext/ogg/gstoggdemux.c
@@
-2613,7
+2613,11
@@
ogg_find_suggest (gpointer data, guint probability, const GstCaps * caps)
OggTypeFind *find = (OggTypeFind *) data;
if (probability > find->best_probability) {
- gst_caps_replace (&find->caps, gst_caps_copy (caps));
+ GstCaps *copy = gst_caps_copy (caps);
+
+ gst_caps_replace (&find->caps, copy);
+ gst_caps_unref (copy);
+
find->best_probability = probability;
}
}