Changeset 1453


Ignore:
Timestamp:
2000-08-25T16:39:11+12:00 (24 years ago)
Author:
jrm21
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.