[PATCH] winegstreamer: Fix regression from d62b4dcb664

Maarten Lankhorst m.b.lankhorst at gmail.com
Wed Nov 10 13:58:56 CST 2010


Accidentally made a worse leak by plugging a smaller one
---
 dlls/winegstreamer/gstdemux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 94903c1..1f98a7d 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -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;
-- 
1.7.1




More information about the wine-patches mailing list