<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 11, 2013 at 4:11 PM, <span dir="ltr"><<a href="mailto:wenju@multicorewareinc.com" target="_blank">wenju@multicorewareinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Wenju He<br></blockquote><div><br></div><div>Thanks Wenju, I've queued this bug fix. Can you configure an email address in your commit username?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
# Date 1378930206 18000<br>
# Wed Sep 11 15:10:06 2013 -0500<br>
# Node ID fb41c642fd5604572ff64ef521a07ea06ef09f37<br>
# Parent ea0aa1f8abda53da2473d3d4c444690d2099c01a<br>
check before delete<br>
<br>
diff -r ea0aa1f8abda -r fb41c642fd56 source/Lib/TLibEncoder/TEncCu.cpp<br>
--- a/source/Lib/TLibEncoder/TEncCu.cpp Wed Sep 11 14:50:24 2013 -0500<br>
+++ b/source/Lib/TLibEncoder/TEncCu.cpp Wed Sep 11 15:10:06 2013 -0500<br>
@@ -277,9 +277,12 @@<br>
}<br>
for (int j = 0; j < MAX_PRED_TYPES; j++)<br>
{<br>
- m_modePredYuv[j][i]->destroy();<br>
- delete m_modePredYuv[j][i];<br>
- m_modePredYuv[j][i] = NULL;<br>
+ if (m_modePredYuv[j][i])<br>
+ {<br>
+ m_modePredYuv[j][i]->destroy();<br>
+ delete m_modePredYuv[j][i];<br>
+ m_modePredYuv[j][i] = NULL;<br>
+ }<br>
}<br>
<br>
if (m_tmpResiYuv[i])<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Borho
</div></div>