assert that everything is present
This commit is contained in:
parent
b5fd4c2879
commit
372f48eab7
|
@ -172,6 +172,9 @@ static PyObject *devctxt_select_bitmap(DevCtxtObject *self, BitmapObject *newbmp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log(LDEBUG, "replacement sequence");
|
Log(LDEBUG, "replacement sequence");
|
||||||
|
ASSERT(old_bitmap);
|
||||||
|
ASSERT(self->selected_bitmap);
|
||||||
|
ASSERT(newbmp);
|
||||||
Py_DECREF(self->selected_bitmap);
|
Py_DECREF(self->selected_bitmap);
|
||||||
self->selected_bitmap = newbmp;
|
self->selected_bitmap = newbmp;
|
||||||
Py_INCREF(self->selected_bitmap);
|
Py_INCREF(self->selected_bitmap);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user