[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/krecipes/src
From:       Jason Kivlighn <confederacy2 () excite ! com>
Date:       2004-05-13 4:52:54
Message-ID: 20040513045254.0588825B7 () office ! kde ! org
[Download RAW message or body]

CVS commit by jkivlighn: 

-Remove an unnecessary cast
-Memory leak


  M +2 -1      krecipesview.cpp   1.140


--- kdenonbeta/krecipes/src/krecipesview.cpp  #1.139:1.140
@@ -901,5 +901,5 @@ void KrecipesView::initDatabase(KConfig 
                         
                         // Try opening the database again with the new details
-                        delete (MySQLRecipeDB *)database;
+                        delete database;
                         database=new MySQLRecipeDB(host,user,pass,dbname);
                         }
@@ -910,4 +910,5 @@ void KrecipesView::initDatabase(KConfig 
                         {
                         kdDebug()<<i18n("Configured type... SQLite\n").latin1();
+                        delete database;
                         database=new LiteRecipeDB(QString::null); // server \
parameterss make no sense for SQLite  }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic