From 8123b75c55cb5140ae5b0c5aeddb4644a0a8ffbb Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 12 Sep 2004 23:02:35 +0000 Subject: Remove memory leak --- (limited to 'libopie2') 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 @@ -88,7 +88,10 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi } OTabWidget::~OTabWidget() -{} +{ + tabs.setAutoDelete( true ); + tabs.clear(); +} void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) { -- cgit v0.9.0.2