summaryrefslogtreecommitdiff
path: root/libopie2/opieui
authorzecke <zecke>2004-09-12 23:02:35 (UTC)
committer zecke <zecke>2004-09-12 23:02:35 (UTC)
commit8123b75c55cb5140ae5b0c5aeddb4644a0a8ffbb (patch) (unidiff)
tree2ada329a539b5143bd732be361b9bcb5e7784ec4 /libopie2/opieui
parent0f705db7c338e9642294823333e5f4410aa0573f (diff)
downloadopie-8123b75c55cb5140ae5b0c5aeddb4644a0a8ffbb.zip
opie-8123b75c55cb5140ae5b0c5aeddb4644a0a8ffbb.tar.gz
opie-8123b75c55cb5140ae5b0c5aeddb4644a0a8ffbb.tar.bz2
Remove memory leak
Diffstat (limited to 'libopie2/opieui') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/otabwidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libopie2/opieui/otabwidget.cpp b/libopie2/opieui/otabwidget.cpp
index a9f7da9..d23b1c9 100644
--- a/libopie2/opieui/otabwidget.cpp
+++ b/libopie2/opieui/otabwidget.cpp
@@ -83,17 +83,20 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi
83 tabBarPosition = p; 83 tabBarPosition = p;
84 setTabStyle( s ); 84 setTabStyle( s );
85 setTabPosition( p ); 85 setTabPosition( p );
86 86
87 currTab= 0x0; 87 currTab= 0x0;
88} 88}
89 89
90OTabWidget::~OTabWidget() 90OTabWidget::~OTabWidget()
91{} 91{
92 tabs.setAutoDelete( true );
93 tabs.clear();
94}
92 95
93void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) 96void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label )
94{ 97{
95 QPixmap iconset = loadSmooth( icon ); 98 QPixmap iconset = loadSmooth( icon );
96 99
97 QTab *tab = new QTab(); 100 QTab *tab = new QTab();
98 if ( tabBarStyle == IconTab ) 101 if ( tabBarStyle == IconTab )
99 { 102 {