]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardvob.cpp
[PATCH 4/6] Simplify some object deletion code
[kdenlive] / src / dvdwizardvob.cpp
index 6955eb696cab1bf144e8c01fe4cad335faaa16dc..a9dbfc67ebd0dddd3ba794bf8fb9063f853ac9fd 100644 (file)
@@ -108,8 +108,7 @@ void DvdWizardVob::slotCheckVobList(const QString &text)
     } else if (text.isEmpty()) {
         if (allUrls.at(count - 1)->url().path().isEmpty() && allUrls.at(count - 2)->url().path().isEmpty()) {
             // The last 2 urlrequesters are empty, remove last one
-            KUrlRequester *vob = allUrls.takeLast();
-            delete vob;
+            delete allUrls.takeLast();
         }
     } else {
         if (allUrls.at(count - 1)->url().path().isEmpty()) return;