mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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.
This commit is contained in:
parent
bb7b105aa7
commit
1d127e3c3e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64992
1 changed files with 17 additions and 0 deletions
17
cad/spice/files/patch-bc
Normal file
17
cad/spice/files/patch-bc
Normal file
|
@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue