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

gEDA-cvs: CVS update: o_text_basic.c



  User: ahvezda 
  Date: 07/05/13 23:35:09

  Modified:    .        o_text_basic.c
  Log:
  Fixed a memory leak reported by Peter Brett (found using valgrind).
  
  
  
  
  Revision  Changes    Path
  1.29      +2 -0      eda/geda/gaf/libgeda/src/o_text_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_text_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_text_basic.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -b -r1.28 -r1.29
  --- o_text_basic.c	17 Apr 2007 20:19:21 -0000	1.28
  +++ o_text_basic.c	14 May 2007 03:35:09 -0000	1.29
  @@ -240,6 +240,8 @@
   
     o_font_set->font_prim_objs = return_head(o_font_set->font_prim_objs);
   
  +  if (temp_string) g_free(temp_string);
  +
     return(o_font_set->font_prim_objs);
   }
   
  
  
  


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