summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/clover/core/platform.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/core/platform.cpp b/src/gallium/state_trackers/clover/core/platform.cpp
index e35b1f96da5..762a015ca1a 100644
--- a/src/gallium/state_trackers/clover/core/platform.cpp
+++ b/src/gallium/state_trackers/clover/core/platform.cpp
@@ -33,6 +33,8 @@ platform::platform() : adaptor_range(derefs(), devs) {
for (pipe_loader_device *ldev : ldevs) {
try {
devs.push_back(transfer(new device(*this, ldev)));
- } catch (error &) {}
+ } catch (error &) {
+ pipe_loader_release(&ldev, 1);
+ }
}
}