--- rpl/modules/motif/motif.rplc 2017/07/17 21:35:32 1.6 +++ rpl/modules/motif/motif.rplc 2017/07/22 11:29:49 1.7 @@ -70,7 +70,7 @@ declareSubroutine(onLoading) endSubroutine declareSubroutine(onClosing) - // Destruction des variables spécifiques + // Destruction des variables spécifiques et des callbacks declareObject(variable); declareDaisyChain(current); declareDaisyChain(next); @@ -78,8 +78,7 @@ declareSubroutine(onClosing) current = lCallbacks; repeatWhile(not nullified(current)) - next = current; - nextElementOfDaisyChain(next); + next = nextElementOfDaisyChain(current); variable = fetchElementFromDaisyChain(current); freeObject(variable); free(current);