Commit a36d937
[GStreamer] GRefPtr template specialization for GstObject
https://bugs.webkit.org/show_bug.cgi?id=266967
Reviewed by Carlos Garcia Campos.
Without this the leak tracer might report leaks from MediaPlayerPrivateGStreamer::updateTracks()
that uses a GRefPtr<GstObject>. I don't think it's a real one, because without this patch GRefPtr
would fallback to the default GObject ref/unref, which is also OK, but not tracked by the leak tracer.
* Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp:
(WTF::adoptGRef):
(WTF::refGPtr<GstObject>):
(WTF::derefGPtr<GstObject>):
* Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h:
Canonical link: https://commits.webkit.org/272553@main1 parent af0715b commit a36d937
2 files changed
Lines changed: 23 additions & 0 deletions
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
58 | 77 | | |
59 | 78 | | |
60 | 79 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
0 commit comments