[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: o_basic.c
User: cnieves
Date: 06/10/22 05:47:40
Modified: . Tag: glist_dev o_basic.c
Log:
* src/o_basic.c: Don't free objects in the complex place list. It is
only a reference to the objects in the page.
Revision Changes Path
No revision
No revision
1.21.2.4 +5 -2 eda/geda/gaf/gschem/src/o_basic.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: o_basic.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_basic.c,v
retrieving revision 1.21.2.3
retrieving revision 1.21.2.4
diff -u -b -r1.21.2.3 -r1.21.2.4
--- o_basic.c 21 Oct 2006 22:20:45 -0000 1.21.2.3
+++ o_basic.c 22 Oct 2006 09:47:40 -0000 1.21.2.4
@@ -759,8 +759,11 @@
* so lets be sure to clean up the complex_place_head
* structure and also clean up the attrib_place_head.
* remember these don't remove the head structure */
- s_delete_object_glist (w_current,
- w_current->page_current->complex_place_list);
+ /* The complex place is a reference to the real objects, so don't
+ free the objects here */
+ g_list_free (w_current->page_current->complex_place_list);
+ w_current->page_current->complex_place_list = NULL;
+
o_list_delete_rest(w_current,
w_current->page_current->attrib_place_head);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs