mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 09:30:46 +02:00
Cleanup of a number of uninitialized variable issues flagged by
the compiler. Some are obscure functions (plot verstatec hasn't been used in years) but others (like SPICE distributed junctions) are potentially significant sources of unexpected crashes on systems that don't zero uninitialized memory.
This commit is contained in:
@@ -196,6 +196,7 @@ PlotFreeRaster(raster)
|
||||
* have been created with PlotNewRaster.
|
||||
*/
|
||||
{
|
||||
if (raster == NULL) return;
|
||||
freeMagic((char *) raster->ras_bits);
|
||||
freeMagic((char *) raster);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user