Well... comming back to the flowcode in 0.3.7 cuestion.
This bug was fixed in trunk (rev 290), but not in 0.3.7 branch.

2009/10/1 P Zoltan <zoltan.padrah@gmail.com>
On Thu, 01 Oct 2009 01:34:22 +0200, santiago gonzalez
<santigoro@gmail.com> wrote:

> Sorry again... the bug deleting components or closing the circuit
> document
> is still there...
> I just uncomented the lines in electronicconnector.cpp in the wrong
> folder...

 You can see in valgrind (memory check) that there are several invalid
reads in ktechlab when closing a document.

Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
Ktechlab-devel mailing list