logi loader fork from jpiat

Fork of mbed-src by Jonathan Piat

Revision:
49:a1af374b4197
Parent:
41:e8b66477f5bf
Child:
212:34d62c0b2af6
--- 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) {