aboutsummaryrefslogtreecommitdiffstats
path: root/cad/spice
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2002-08-26 03:00:37 +0800
committerjoerg <joerg@FreeBSD.org>2002-08-26 03:00:37 +0800
commit7c88d6bcf373b5da5311ab9c8ad27d720084e2d6 (patch)
tree8022df1617de687bb53cdf65c15148a65e64c59b /cad/spice
parent6b286c2e2f4657ac6bff3e22b115851580a8b89a (diff)
downloadfreebsd-ports-gnome-7c88d6bcf373b5da5311ab9c8ad27d720084e2d6.tar.gz
freebsd-ports-gnome-7c88d6bcf373b5da5311ab9c8ad27d720084e2d6.tar.zst
freebsd-ports-gnome-7c88d6bcf373b5da5311ab9c8ad27d720084e2d6.zip
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.
Diffstat (limited to 'cad/spice')
-rw-r--r--cad/spice/files/patch-bc17
1 files changed, 17 insertions, 0 deletions
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);
+
+ }
+