• Robert Sprowson's avatar
    Fix memory leak and undefined behaviour · 45b37ed5
    Robert Sprowson authored
    edidsupport.c: for each CVT3 and standard timing block encountered a ModeDescription was allocated but never used, thus leaked.
    ScrModes.c: start the bit masking loop at 0, otherwise a mask of 1<<-1 is used.
    Found by cppcheck static analysis.
    
    Aside - edidsupport.c the calls to dtd_block_to_modedesc() could be refactored to let it do the allocation, rather than each caller doing so and having to deal with clean up on error. Not done in these changes.
    
    Version 0.70. Tagged as 'ScrModes-0_70'
    45b37ed5
VersionNum 814 Bytes