assert that everything is present

This commit is contained in:
Amy Bowersox 2019-12-11 14:25:05 -07:00
parent b5fd4c2879
commit 372f48eab7

View File

@ -172,6 +172,9 @@ static PyObject *devctxt_select_bitmap(DevCtxtObject *self, BitmapObject *newbmp
}
}
Log(LDEBUG, "replacement sequence");
ASSERT(old_bitmap);
ASSERT(self->selected_bitmap);
ASSERT(newbmp);
Py_DECREF(self->selected_bitmap);
self->selected_bitmap = newbmp;
Py_INCREF(self->selected_bitmap);