sepfy / libpeer

WebRTC Library for IoT/Embedded Device using C
MIT License
863 stars 127 forks source link

Memory Leak on the gstreamer example #10

Closed icemanaf closed 2 years ago

icemanaf commented 2 years ago

When running the gstreamer example on a Pi Zero W , I noticed that the application was slowly but surely increasing it's memory usage, from around 7% as displayed on the top command, to around 70% when the PI crashed after 15 minutes or so. The fix is very simple, you need to unmap the gst buffer once you are done with it.

I've opened a PR https://github.com/sepfy/pear/pull/9

sepfy commented 2 years ago

OK! Merged. Thanks~