Changeset 1453

Show
Ignore:
Timestamp:
25.08.2000 16:39:11 (19 years ago)
Author:
jrm21
Message:

Added check to only free "icon" and "smallicon" string resources if they
were set... :( (stupid, stupid....)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/z3950proto.cpp

    r1372 r1453  
    136136    oldhere=here; 
    137137    here=here->next; 
    138     free(oldhere->shortname); 
     138    free(oldhere->shortname); // these 4 strings should all be non-NULL... 
    139139    free(oldhere->hostname); 
    140140    free(oldhere->dbname); 
    141141    free(oldhere->longname); 
    142     free(oldhere->icon); 
    143     free(oldhere->smallicon); 
     142    if (oldhere->icon) free(oldhere->icon);     // these 2 may be NULL 
     143    if (oldhere->smallicon) free(oldhere->smallicon); 
    144144    free(oldhere); 
    145145