wasapi: Don't pass CoTaskMemFree to g_clear_pointer
CoTaskMemFree has a different calling convention than GDestroyNotify and things crash at least with MinGW. https://bugzilla.gnome.org/show_bug.cgi?id=796280
This commit is contained in:
parent
2227ef1304
commit
adb1df3bc1
@ -208,7 +208,8 @@ gst_wasapi_sink_finalize (GObject * object)
|
||||
{
|
||||
GstWasapiSink *self = GST_WASAPI_SINK (object);
|
||||
|
||||
g_clear_pointer (&self->mix_format, CoTaskMemFree);
|
||||
CoTaskMemFree (self->mix_format);
|
||||
self->mix_format = NULL;
|
||||
|
||||
CoUninitialize ();
|
||||
|
||||
|
@ -227,7 +227,8 @@ gst_wasapi_src_finalize (GObject * object)
|
||||
{
|
||||
GstWasapiSrc *self = GST_WASAPI_SRC (object);
|
||||
|
||||
g_clear_pointer (&self->mix_format, CoTaskMemFree);
|
||||
CoTaskMemFree (self->mix_format);
|
||||
self->mix_format = NULL;
|
||||
|
||||
CoUninitialize ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user