Index: trunk/src_plugins/hid_lesstif/main.c =================================================================== --- trunk/src_plugins/hid_lesstif/main.c (revision 13557) +++ trunk/src_plugins/hid_lesstif/main.c (revision 13558) @@ -3314,6 +3314,13 @@ XtInputId id; } WatchStruct; +void lesstif_unwatch_file(pcb_hidval_t data) +{ + WatchStruct *watch = (WatchStruct *) data.ptr; + XtRemoveInput(watch->id); + free(watch); +} + /* We need a wrapper around the hid file watch because to pass the correct flags */ static void lesstif_watch_cb(XtPointer client_data, int *fid, XtInputId * id) @@ -3371,12 +3378,6 @@ return ret; } -void lesstif_unwatch_file(pcb_hidval_t data) -{ - WatchStruct *watch = (WatchStruct *) data.ptr; - XtRemoveInput(watch->id); - free(watch); -} typedef struct { XtBlockHookId id;