From 1d127e3c3e4f83b31b94e62ff8581d2a32bea12b Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 25 Aug 2002 19:00:37 +0000 Subject: [PATCH] When destroying a graph, don't attempt to dereference the contents of already free()d client_data. Instead, extract the widget to destroy first, then destroy the client_data, then destroy the remembered widget. The maintainer of this port never responsed to my emails. --- cad/spice/files/patch-bc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cad/spice/files/patch-bc diff --git a/cad/spice/files/patch-bc b/cad/spice/files/patch-bc new file mode 100644 index 000000000000..22a05ee078a1 --- /dev/null +++ b/cad/spice/files/patch-bc @@ -0,0 +1,17 @@ +--- src/lib/fte/x11.c~ Fri Mar 22 00:12:59 2002 ++++ src/lib/fte/x11.c Fri Mar 22 00:25:41 2002 +@@ -808,11 +808,13 @@ + { + + GRAPH *graph = (GRAPH *) client_data; ++ Widget w; + + /* Iplots are done asynchronously */ + DEVDEP(graph).isopen = 0; ++ w = DEVDEP(graph).shell; + DestroyGraph(graph->graphid); +- XtDestroyWidget(DEVDEP(graph).shell); ++ XtDestroyWidget(w); + + } +