From 372f48eab7237447f1c8e50fce8cd338f4e6368a Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Wed, 11 Dec 2019 14:25:05 -0700 Subject: [PATCH] assert that everything is present --- src/ep_devctxt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ep_devctxt.c b/src/ep_devctxt.c index b906ab5..33d6913 100755 --- a/src/ep_devctxt.c +++ b/src/ep_devctxt.c @@ -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);