<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -63,13 +63,14 @@
       (values result))))
 
 (defun main-with-cleanup (stage)
-  &quot;Execute main loop, and when it ends remove everything from stage, disconnect all stage lisp signals and hide the stage.&quot;
+  &quot;Execute main loop, and when it ends remove everything from stage, disconnect all stage lisp signals, cleanup current pool and hide the stage.&quot;
   (%actor-show stage)
   (%main)
   (add-idle (compose (constantly nil)
                      #'%main-quit))
   (%group-remove-all stage)
   (disconnect-lisp-signals stage)
+  (collect-pool *current-pool*)
   (%actor-hide stage)
   (%main))
 </diff>
      <filename>wrappers.lisp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d2197930bb5769907c94ba8cdcf06170e14a7dec</id>
    </parent>
  </parents>
  <author>
    <name>Ramarren</name>
    <email>ramarren@gmail.com</email>
  </author>
  <url>http://github.com/Ramarren/cffi-clutter/commit/f2dddcb34b350eaa09ddcd68a7ae56ff1b3073b8</url>
  <id>f2dddcb34b350eaa09ddcd68a7ae56ff1b3073b8</id>
  <committed-date>2009-07-10T00:50:35-07:00</committed-date>
  <authored-date>2009-07-10T00:50:35-07:00</authored-date>
  <message>Collect the pool before relaunching the main loop to destroy any top level behaviours.</message>
  <tree>ed0c07ee02e5db196c1c2a228a11d93236c62900</tree>
  <committer>
    <name>Ramarren</name>
    <email>ramarren@gmail.com</email>
  </committer>
</commit>
