speex: Fix crash on Windows caused by cross-CRT issue
authorSeungha Yang <seungha@centricular.com>
Thu, 28 May 2020 15:45:03 +0000 (00:45 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 28 May 2020 15:54:10 +0000 (00:54 +0900)
commit1b8df15b7888b6a476f71a8d6906330eb7751ffd
tree8d67fb96093717e89f85d5d56d21a056d0c6248f
parentb94b9988fa0219566274214779887f33644167b3
speex: Fix crash on Windows caused by cross-CRT issue

Use speex_header_free() to free memory which was allocated by
library. Cross-CRT issue should not happen on 1.17 Cerbero build
but might happen custom build or so.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/606>
ext/speex/gstspeexdec.c
ext/speex/gstspeexenc.c