Title: [225459] trunk/Source/WebCore
- Revision
- 225459
- Author
- [email protected]
- Date
- 2017-12-03 01:08:42 -0800 (Sun, 03 Dec 2017)
Log Message
[GStreamer] GstPad leaked in WebKitTextCombiner
https://bugs.webkit.org/show_bug.cgi?id=180314
Reviewed by Michael Catanzaro.
gst_element_get_static_pad() returns a full reference that si never freed, because gst_ghost_pad_new doesn't
take the ownership of the given pad.
* platform/graphics/gstreamer/TextCombinerGStreamer.cpp:
(webkit_text_combiner_init):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (225458 => 225459)
--- trunk/Source/WebCore/ChangeLog 2017-12-03 09:07:25 UTC (rev 225458)
+++ trunk/Source/WebCore/ChangeLog 2017-12-03 09:08:42 UTC (rev 225459)
@@ -1,5 +1,18 @@
2017-12-03 Carlos Garcia Campos <[email protected]>
+ [GStreamer] GstPad leaked in WebKitTextCombiner
+ https://bugs.webkit.org/show_bug.cgi?id=180314
+
+ Reviewed by Michael Catanzaro.
+
+ gst_element_get_static_pad() returns a full reference that si never freed, because gst_ghost_pad_new doesn't
+ take the ownership of the given pad.
+
+ * platform/graphics/gstreamer/TextCombinerGStreamer.cpp:
+ (webkit_text_combiner_init):
+
+2017-12-03 Carlos Garcia Campos <[email protected]>
+
[GStreamer] GstCaps leaked in MediaPlayerPrivateGStreamer::createGSTPlayBin
https://bugs.webkit.org/show_bug.cgi?id=180311
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp (225458 => 225459)
--- trunk/Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp 2017-12-03 09:07:25 UTC (rev 225458)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp 2017-12-03 09:08:42 UTC (rev 225459)
@@ -24,9 +24,11 @@
*/
#include "config.h"
+#include "TextCombinerGStreamer.h"
+
#if ENABLE(VIDEO) && USE(GSTREAMER) && ENABLE(VIDEO_TRACK)
-#include "TextCombinerGStreamer.h"
+#include "GRefPtrGStreamer.h"
static GstStaticPadTemplate sinkTemplate =
GST_STATIC_PAD_TEMPLATE("sink_%u", GST_PAD_SINK, GST_PAD_REQUEST,
@@ -83,10 +85,10 @@
UNUSED_PARAM(ret);
ASSERT(ret);
- GstPad* pad = gst_element_get_static_pad(combiner->funnel, "src");
+ GRefPtr<GstPad> pad = adoptGRef(gst_element_get_static_pad(combiner->funnel, "src"));
ASSERT(pad);
- ret = gst_element_add_pad(GST_ELEMENT(combiner), gst_ghost_pad_new("src", pad));
+ ret = gst_element_add_pad(GST_ELEMENT(combiner), gst_ghost_pad_new("src", pad.get()));
ASSERT(ret);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes