<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Thanks Nicolas</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> 代表 Nicolas Dufresne <nicolas@ndufresne.ca><br>
<b>发送时间:</b> 2017年10月17日 5:40<br>
<b>收件人:</b> Discussion of the development of and with GStreamer<br>
<b>主题:</b> Re: unref an element without memory leak</font>
<div> </div>
</div>
<div>
<div dir="auto">
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">Le 16 oct. 2017 3:09 PM, "Liu Xin" <<a href="mailto:liuxin8166@hotmail.com">liuxin8166@hotmail.com</a>> a écrit :<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-8004722221955041975divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>hi, </p>
<p><br>
</p>
<p>I'm writing a pipeline with dynamic branch. While removing the branch, I ran into the case in which a queue element will be gst_bin_removed in the probe callback to the queue's peering tee element. My question is, what if there's frame data still hanging
 in the queue element? Will this lead to a memory leak?</p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">It's a requirement to set the element to NULL state before you unref it. The buffers will be discarded and returned to their appropriate pool and/or allocator during this state transition.</div>
<div dir="auto">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-8004722221955041975divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p><br>
</p>
<p>Please share your expertise.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Xin</p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>