Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c27cf68
)
gui/TabControl: Fixed memory leaks
author
Jerome St-Louis
<jerome@ecere.com>
Sun, 15 Mar 2015 19:30:43 +0000
(15:30 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Mon, 21 Dec 2015 19:11:58 +0000
(14:11 -0500)
- TabControl when using AddTab
ecere/src/gui/controls/TabControl.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/TabControl.ec
b/ecere/src/gui/controls/TabControl.ec
index
e39553f
..
aa5dfa5
100644
(file)
--- a/
ecere/src/gui/controls/TabControl.ec
+++ b/
ecere/src/gui/controls/TabControl.ec
@@
-595,7
+595,9
@@
public class TabControl : Window
if(created)
{
tab.button.Create();
- incref tab;
+ // This was causing leaks with RemoveTab / AddTab usage in Cartographer...
+ // RemoveTab() does not dec'ref...
+ // incref tab;
}
numTabs++;