Revision: 4694
          http://sourceforge.net/p/vexi/code/4694
Author:   mkpg2
Date:     2014-05-10 14:07:32 +0000 (Sat, 10 May 2014)
Log Message:
-----------
Fix. Memory leak. Tabpane  group 'tabgroup' not having items removed from it.

Modified Paths:
--------------
    branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t

Added Paths:
-----------
    branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/util/string.t

Modified: 
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t 
2014-05-08 06:18:11 UTC (rev 4693)
+++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t 
2014-05-10 14:07:32 UTC (rev 4694)
@@ -196,19 +196,21 @@
                         c.v_tabitem = i;
                         th_tablist.add(i);
                     }
-                }
-                // clean up tabs
-                if (!c) {
+                } else {
+                    // clean up tabs
                     var _c = v_content[trapname];
                     if (_c) {
-                        _c.v_tab.selected --= tabselectWrite;
-                        _c.v_tab.width --= tabListPolicy;
-                        _c.v_tab.thisbox = null;
+                        const t = _c.v_tab; 
+                        t.selected --= tabselectWrite;
+                        t.width --= tabListPolicy;
+                        t.thisbox = null;
+                        t.group = null;
                         _c.v_tabitem.thisbox = null;
-                        taborder.remove(_c);
+                        taborder.remove(_c);                                   
                 
                     }
                     var nextc = taborder.first;
                     if (nextc) show = nextc;
+                    
                 }
                 cascade = c;
             }

Added: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/util/string.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/util/string.t            
                (rev 0)
+++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/util/string.t    
2014-05-10 14:07:32 UTC (rev 4694)
@@ -0,0 +1,9 @@
+<!-- public domain -->
+
+<vexi xmlns:ui="vexi://ui" xmlns="vexi.util">
+    <ui:box orient="vertical">
+        
+        trace(.string..trim("  x "));
+        
+    </ui:box>
+</vexi>
\ No newline at end of file

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to