summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/librtems++/rtemsInterrupt.cc5
-rw-r--r--c/src/librtems++/src/rtemsInterrupt.cc5
2 files changed, 10 insertions, 0 deletions
diff --git a/c/src/lib/librtems++/rtemsInterrupt.cc b/c/src/lib/librtems++/rtemsInterrupt.cc
index c445807c35..4cd5d9afa9 100644
--- a/c/src/lib/librtems++/rtemsInterrupt.cc
+++ b/c/src/lib/librtems++/rtemsInterrupt.cc
@@ -54,6 +54,11 @@ rtemsInterrupt::rtemsInterrupt()
}
}
+rtemsInterrupt::~rtemsInterrupt()
+{
+ release();
+}
+
const rtems_status_code rtemsInterrupt::isr_catch(const rtems_vector_number vec)
{
if (vec >= CPU_INTERRUPT_NUMBER_OF_VECTORS)
diff --git a/c/src/librtems++/src/rtemsInterrupt.cc b/c/src/librtems++/src/rtemsInterrupt.cc
index c445807c35..4cd5d9afa9 100644
--- a/c/src/librtems++/src/rtemsInterrupt.cc
+++ b/c/src/librtems++/src/rtemsInterrupt.cc
@@ -54,6 +54,11 @@ rtemsInterrupt::rtemsInterrupt()
}
}
+rtemsInterrupt::~rtemsInterrupt()
+{
+ release();
+}
+
const rtems_status_code rtemsInterrupt::isr_catch(const rtems_vector_number vec)
{
if (vec >= CPU_INTERRUPT_NUMBER_OF_VECTORS)