<br><br><div><span class="gmail_quote">2007/5/29, Albert Astals Cid &lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
A Dimarts 29 Maig 2007, Guillaume Denry va escriure:<br>&gt; 2007/5/29, Guillaume Denry &lt;<a href="mailto:guillaume.denry@gmail.com">guillaume.denry@gmail.com</a>&gt;:<br>&gt; &gt; 2007/5/29, Johann Ollivier Lapeyre &lt;
<a href="mailto:johann.ollivierlapeyre@gmail.com">johann.ollivierlapeyre@gmail.com</a>&gt;:<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Bovo was very good in playground, and after the dev approval, it was<br>
&gt; &gt; &gt; moved to kdereview, even if the dev had a tmp computer issue.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; But now, the 1st june limit is coming, the aron&#39;s computer is still<br>&gt; &gt; &gt; dead for few days, and the kdereview&#39;s bovo is crashing since at least
<br>&gt; &gt; &gt; 1 week. I asked to Guid to look on it, but he didn&#39;t found yet.<br>&gt; &gt;<br>&gt; &gt; Crash finally found. \o/<br>&gt; &gt; I&#39;ll send the patch in a few minutes for a review, stay tuned.<br>
&gt;<br>&gt; Crash was caused by a multi-referencing of the same Coord pointer (m_coord)<br>&gt; in the Move class. (Because of the implicit copy constructor of Move which<br>&gt; copied pointers in the back() or last() function of QList)
<br>&gt; I replaced &quot;Coord *m_coord;&quot; by &quot;Coord m_coord;&quot; and changed some Move<br>&gt; functions consequently, I think it won&#39;t cause any troubles now.<br><br>Well, you discovered the failure, but failed to implement the &quot;least lines
<br>change will fix it&quot;, that is implementing the copy constructor to behave<br>correctly<br><a href="http://websvn.kde.org/trunk/kdereview/bovo/game/move.cc?r1=669582&amp;r2=669581&amp;pathrev=669582">http://websvn.kde.org/trunk/kdereview/bovo/game/move.cc?r1=669582&amp;r2=669581&amp;pathrev=669582
</a><br><br>I&#39;m not saying that your patch was wrong (in fact i think it would be a good<br>thing to hold the Coord itself and not a pointer to a Coord), just mine is<br>more efficient in lines changed, and given neither me and you are the
<br>mantainer i think is a good thing to change as less as possible.</blockquote><div><br>No problem. <br>Nevertheless, continuing to use pointers without redefine =operator in the Move class could lead to future crashes but I totally agree with this &quot;least lines change will fix it&quot; principle.
<br><br>Guid</div></div><br>