[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/phpsupport
From: Roberto Raggi <roberto () kdevelop ! org>
Date: 2003-07-15 20:39:53
[Download RAW message or body]
CVS commit by raggi:
fixed some memory leak in php support. as nice side effect the phphtmlviewer
is removed when you close the project
M +15 -1 phpsupportpart.cpp 1.45
--- kdevelop/parts/phpsupport/phpsupportpart.cpp #1.44:1.45
@@ -116,5 +116,19 @@ PHPSupportPart::PHPSupportPart(QObject *
PHPSupportPart::~PHPSupportPart()
-{}
+{
+ delete( m_parser );
+ delete( m_codeCompletion );
+ delete( configData );
+
+ if( m_htmlView ){
+ mainWindow()->removeView( m_htmlView->view() );
+ delete( m_htmlView );
+ m_htmlView = 0;
+ }
+
+ delete( phpExeProc );
+ delete( m_phpErrorView );
+ mainWindow()->removeView( m_phpErrorView );
+}
void PHPSupportPart::slotActivePartChanged(KParts::Part *part){
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic