]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Event: Delete driver after cleanup 4488/head
authorHaomai Wang <haomaiwang@gmail.com>
Wed, 29 Apr 2015 02:54:01 +0000 (10:54 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Wed, 29 Apr 2015 02:54:01 +0000 (10:54 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/Event.cc

index fad26148bac3f001559d3cd7d4f7a917e25995cd..4bf2d3151a76020080e7e873325fbf47d2179ac3 100644 (file)
@@ -104,14 +104,14 @@ int EventCenter::init(int n)
 
 EventCenter::~EventCenter()
 {
-  delete driver;
-
   if (notify_receive_fd >= 0) {
     delete_file_event(notify_receive_fd, EVENT_READABLE);
     ::close(notify_receive_fd);
   }
   if (notify_send_fd >= 0)
     ::close(notify_send_fd);
+    
+  delete driver;
   if (file_events)
     free(file_events);
 }