remove timer reference when stopping timer
authorHannes Gredler <hannes@gredler.at>
Wed, 27 May 2009 07:22:19 +0000 (09:22 +0200)
committerHannes Gredler <hannes@gredler.at>
Wed, 27 May 2009 07:22:19 +0000 (09:22 +0200)
src/interfaces.c

index c697f98..543835d 100644 (file)
@@ -193,14 +193,19 @@ remove_interface(struct interface **pinterf)
    * Deregister functions for periodic message generation
    */
   olsr_stop_timer(ifp->hello_gen_timer);
+  ifp->hello_gen_timer = NULL;
   olsr_stop_timer(ifp->tc_gen_timer);
+  ifp->tc_gen_timer = NULL;
   olsr_stop_timer(ifp->mid_gen_timer);
+  ifp->mid_gen_timer = NULL;
   olsr_stop_timer(ifp->hna_gen_timer);
+  ifp->hna_gen_timer = NULL;
 
   /*
    * Stop interface pacing.
    */
   olsr_stop_timer(ifp->buffer_hold_timer);
+  ifp->buffer_hold_timer = NULL;
 
   /*
    * Unlink from config.