null check before deleting bitmap?
This commit is contained in:
parent
b90c2efe2f
commit
9318d27b2b
|
@ -126,6 +126,7 @@ PyObject *Epython_wrap_bitmap(PBITMAP pbmp)
|
|||
{
|
||||
pbitmapobj = (BitmapObject *)rc;
|
||||
Log(LDEBUG, "gonna delete bitmap");
|
||||
if (pbitmapobj->pbmp)
|
||||
BMP_Delete(pbitmapobj->pbmp);
|
||||
Log(LDEBUG, "deleted bitmap");
|
||||
pbitmapobj->pbmp = pbmp;
|
||||
|
|
Loading…
Reference in New Issue
Block a user