mbed library sources

Dependents:   bare

Fork of mbed-src by mbed official

Revision:
49:a1af374b4197
Parent:
41:e8b66477f5bf
diff -r 40454ec5d50d -r a1af374b4197 common/CAN.cpp
--- a/common/CAN.cpp	Thu Nov 21 10:45:04 2013 +0000
+++ b/common/CAN.cpp	Thu Nov 21 16:45:05 2013 +0000
@@ -27,8 +27,8 @@
 }
 
 CAN::~CAN() {
+    can_irq_free(&_can);
     can_free(&_can);
-    can_irq_free(&_can);
 }
 
 int CAN::frequency(int f) {