Commit 36aa2045 authored by Max Kellermann's avatar Max Kellermann

input/smbclient: use std::lock_guard

parent 2c0a9687
......@@ -45,10 +45,9 @@ public:
}
~SmbclientInputStream() {
smbclient_mutex.lock();
const std::lock_guard<Mutex> lock(smbclient_mutex);
smbc_close(fd);
smbc_free_context(ctx, 1);
smbclient_mutex.unlock();
}
/* virtual methods from InputStream */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment