Commit e4805c9
gstreamer: plugin: finalize: free producer resources (#683)
When using gstreamer with gst/gst.h (as opposed to launching using command
line tools such as gst-launch-1.0), on plugin finalize, all resources must
be freed, otherwise a very substantial memory leak occurs. By resetting
the pointer (removing all references or assigning to null) this change
solved a huge memory leak (found, tested and fixed on a real target).
Co-authored-by: Rejean Groleau <[email protected]>1 parent 6bbd9fd commit e4805c9
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | 648 | | |
653 | 649 | | |
654 | 650 | | |
| |||
663 | 659 | | |
664 | 660 | | |
665 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
666 | 665 | | |
667 | 666 | | |
668 | 667 | | |
| |||
0 commit comments