ui/motif/toolkit.c

changeset 1152
f560b35c8ca1
parent 1146
35e098a663a7
--- a/ui/motif/toolkit.c	Fri May 29 15:49:51 2026 +0200
+++ b/ui/motif/toolkit.c	Fri May 29 22:43:47 2026 +0200
@@ -348,6 +348,16 @@
     free(data);
 }
 
+void ui_destroy_event_data(Widget w, UiEventData *data, XtPointer d) {
+    free(data->action);
+    free(data);
+}
+
+void ui_destroy_var_event_data(Widget w, UiVarEventData *data, XtPointer d) {
+    free(data->action);
+    free(data);
+}
+
 void ui_set_widget_groups(UiContext *ctx, Widget widget, const int *groups) {
     if(!groups) {
         return;

mercurial