--- rpl/modules/motif/motif.rplc 2017/07/17 21:35:32 1.6 +++ rpl/modules/motif/motif.rplc 2017/08/23 09:40:54 1.10 @@ -6,13 +6,16 @@ libraryName(motif); exportExternalFunctions( XSynchronize, + XStoreName, XtAddCallback, XtAppExitMainLoop, XtAppInitialize, XtAppMainLoop, XtCreatePopupShell, + XtCreateManagedWidget, XtCreateWidget, XtDestroyWidget, + XtOpenApplication, XtPopdown, XtPopup, XtRealizeWidget, @@ -70,7 +73,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 +81,7 @@ declareSubroutine(onClosing) current = lCallbacks; repeatWhile(not nullified(current)) - next = current; - nextElementOfDaisyChain(next); + next = nextElementOfDaisyChain(current); variable = fetchElementFromDaisyChain(current); freeObject(variable); free(current);