[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: s_page.c



  User: cnieves 
  Date: 06/10/22 05:06:06

  Modified:    .        Tag: glist_dev s_page.c
  Log:
  src/s_page.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.25.2.2  +4 -1      eda/geda/gaf/libgeda/src/s_page.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: s_page.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/s_page.c,v
  retrieving revision 1.25.2.1
  retrieving revision 1.25.2.2
  diff -u -b -r1.25.2.1 -r1.25.2.2
  --- s_page.c	21 Oct 2006 22:20:38 -0000	1.25.2.1
  +++ s_page.c	22 Oct 2006 09:06:05 -0000	1.25.2.2
  @@ -218,7 +218,10 @@
     s_delete_list_fromstart (toplevel, page->object_head);
     
     toplevel->REMOVING_SEL = 1;
  -  s_delete_object_glist (toplevel, page->complex_place_list);
  +  /* The complex place list contain a reference to the objects in the page */
  +  /* So don't free the objects there. */
  +  g_list_free (page->complex_place_list);
  +  page->complex_place_list = NULL;
     s_delete_list_fromstart (toplevel, page->attrib_place_head);
     toplevel->REMOVING_SEL = 0;  
   
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs