]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cdrom.cc
merge 1695..1701 from the lp:~mvo/apt/mvo branch
[apt.git] / apt-pkg / cdrom.cc
index 72d8e4d4174af464d9c9c8ddc6f9361f20eb0441..96d4e9c91c2f95ef56a3a851e68a9dd7a1e51347 100644 (file)
@@ -829,8 +829,6 @@ bool pkgCdrom::Add(pkgCdromStatus *log)                                     /*{{{*/
       }
    }
 
-   
-
    // Unmount and finish
    if (_config->FindB("APT::CDROM::NoMount",false) == false) {
       log->Update(_("Unmounting CD-ROM...\n"), STEP_LAST);
@@ -921,6 +919,7 @@ pkgUdevCdromDevices::Scan()                                             /*{{{*/
 
 pkgUdevCdromDevices::~pkgUdevCdromDevices()                             /*{{{*/
 { 
-   dlclose(libudev_handle);
+   if (libudev_handle != NULL)
+      dlclose(libudev_handle);
 }
                                                                        /*}}}*/