diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-01-26 21:17:13 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-01-26 21:17:13 +0100 |
commit | 89504deb355453e2022cafe54b3b235588bea7d7 (patch) | |
tree | 446f42f046cfede427be6cfa6d24fc173ac43e7b /apt-pkg/cdrom.cc | |
parent | 6571bee2e2289b3a183ae3a922551eb743839392 (diff) | |
parent | ffee221b8d1df28768d30762d72a11289ae747dc (diff) |
merged from the lp:~mvo/apt/libudev-dlopen branch
Diffstat (limited to 'apt-pkg/cdrom.cc')
-rw-r--r-- | apt-pkg/cdrom.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc index 72d8e4d41..96d4e9c91 100644 --- a/apt-pkg/cdrom.cc +++ b/apt-pkg/cdrom.cc @@ -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); } /*}}}*/ |