winegstreamer: Fix regression from d62b4dcb66.

Accidentally made a worse leak by plugging a smaller one.
This commit is contained in:
Maarten Lankhorst 2010-11-10 20:58:56 +01:00 committed by Alexandre Julliard
parent 97393cd557
commit 50d8b0db7a
1 changed files with 1 additions and 0 deletions

View File

@ -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;