CoTaskMemFree has a different calling convention than GDestroyNotify
and things crash at least with MinGW.
https://bugzilla.gnome.org/show_bug.cgi?id=796280
{
GstWasapiSink *self = GST_WASAPI_SINK (object);
- g_clear_pointer (&self->mix_format, CoTaskMemFree);
+ CoTaskMemFree (self->mix_format);
+ self->mix_format = NULL;
CoUninitialize ();
{
GstWasapiSrc *self = GST_WASAPI_SRC (object);
- g_clear_pointer (&self->mix_format, CoTaskMemFree);
+ CoTaskMemFree (self->mix_format);
+ self->mix_format = NULL;
CoUninitialize ();