Commit 50d8b0db authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winegstreamer: Fix regression from d62b4dcb.

Accidentally made a worse leak by plugging a smaller one.
parent 97393cd5
......@@ -519,6 +519,7 @@ static GstFlowReturn got_data_sink(GstPad *pad, GstBuffer *buf) {
} else {
BYTE *ptr = NULL;
hr = BaseOutputPinImpl_GetDeliveryBuffer(&pin->pin, &sample, NULL, NULL, 0);
freeSamp = TRUE;
if (hr == VFW_E_NOT_CONNECTED) {
gst_buffer_unref(buf);
return GST_FLOW_NOT_LINKED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment