UI: fix potential crasher in UI panel commit.

This commit is contained in:
Brecht Van Lommel
2008-12-26 20:25:02 +00:00
parent da078552d4
commit 254fc41b56

View File

@@ -1391,8 +1391,8 @@ void uiFreeInactiveBlocks(const bContext *C, ListBase *lb)
if(!block->handle) {
if(!block->active) {
uiFreeBlock(C, block);
BLI_remlink(lb, block);
uiFreeBlock(C, block);
}
else
block->active= 0;