<br><br><div class="gmail_quote">On Sat, Sep 26, 2009 at 10:11 AM, Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org">boud@valdyas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
SVN commit 1028181 by rempt:<br>
<br>
Fix layer test<br>
<br>
We used to leak the KisProjection, which meant that for every image opened<br>
and closed we would leave a thread with an eventloop running. However, stopping<br>
that thread reliably is quite hard, so try really hard to stop it.<br>
<br>
M +3 -1 kis_image.cc<br>
M +11 -1 kis_projection.cc<br>
M +1 -0 kis_projection.h<br>
M +4 -0 tests/kis_layer_test.cpp<br></blockquote><div><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
+void KisProjection::stop()<br>
+{<br>
+ quit();<br>
+ while(isRunning()) {<br>
+ qApp->processEvents();<br>
+ }<br>
+ setTerminationEnabled(true);<br>
+ terminate();<br>
+}<br>
+<br></blockquote><div><br>This 'while' loop with processEvents() causes infinite loop in KisCropVisitorTest. Please check this! =)<br><br> <br></div></div><br clear="all"><br>-- <br>Dmitry Kazakov<br>