mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
Corrected a small issue in the "property" command that will attempt
to free memory from location 0 if the cell is not editable.
This commit is contained in:
+2
-1
@@ -64,7 +64,8 @@ DBPropPut(cellDef, name, value)
|
||||
|
||||
if (cellDef->cd_flags & CDNOEDIT)
|
||||
{
|
||||
freeMagic((char *)value);
|
||||
if (value != (ClientData)NULL)
|
||||
freeMagic((char *)value);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user