OK, another null problem needs fixing

This commit is contained in:
Amy Bowersox 2019-12-11 14:23:23 -07:00
parent 9318d27b2b
commit b5fd4c2879

View File

@ -166,7 +166,10 @@ static PyObject *devctxt_select_bitmap(DevCtxtObject *self, BitmapObject *newbmp
return NULL; return NULL;
} }
else else
{
Py_INCREF(old_bitmap); Py_INCREF(old_bitmap);
self->selected_bitmap = old_bitmap;
}
} }
Log(LDEBUG, "replacement sequence"); Log(LDEBUG, "replacement sequence");
Py_DECREF(self->selected_bitmap); Py_DECREF(self->selected_bitmap);