Changeset 493 for trunk/matml/src

Show
Ignore:
Timestamp:
11/27/2009 11:15:13 PM (2 years ago)
Author:
powell
Message:

Fixed ridiculous memory leak.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/matml/src/ternary/Ternary.c

    r491 r493  
    2020double T_iso=298., P=1., T_min=273., T_max=373.; 
    2121int P1_res=20, P2_res=20, T_steps=50, numpoints=462, refine=2, *verts=NULL; 
    22 energy_point *points=NULL; 
    2322 
    2423char P1_name[100], P2_name[100], gv_version [100], *entry_names[] = { 
     
    6968{ 
    7069  int i, numbounds, hullnumfacets; 
     70  energy_point *points=NULL; 
    7171  hull_facet *hullfacets = NULL; 
    7272  phase_boundary *allbounds=NULL; 
     
    137137 
    138138  free (vpoints); 
     139  free (allbounds); 
     140  free (hullfacets); 
     141  free (points); 
    139142 
    140143  //printf ("New parameters: \n"); 
     
    155158  gtk_range_set_value (GTK_RANGE (hscale), content); 
    156159  update_pointer (i, content); 
    157   if (points) 
     160  if (isotherm_geomview_pipe || phdiag_geomview_pipe) 
    158161    recalculate_and_display (); 
    159162} 
     
    188191 
    189192      update_pointer (i, content); 
    190       if (points) 
     193      if (isotherm_geomview_pipe || phdiag_geomview_pipe) 
    191194        recalculate_and_display (); 
    192195    }