summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-01-26 16:43:20 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-01-26 16:43:20 +0100
commit169413dcf101ca39aebc2bf46991c27c1e439259 (patch)
treef236d186c1b1f7b0bdbd9fe7e4b3b824a0627126 /apt-pkg
parent51f9f4d78deabf54dbbb6881139d2b1a319ffbfc (diff)
cmdline/apt-cdrom.cc: add --auto-detect
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cdrom.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc
index 72d8e4d41..3467f49d7 100644
--- a/apt-pkg/cdrom.cc
+++ b/apt-pkg/cdrom.cc
@@ -921,6 +921,7 @@ pkgUdevCdromDevices::Scan() /*{{{*/
pkgUdevCdromDevices::~pkgUdevCdromDevices() /*{{{*/
{
- dlclose(libudev_handle);
+ if (libudev_handle != NULL)
+ dlclose(libudev_handle);
}
/*}}}*/