Skip to content

Avoid assert hit in cmnoop_destroy()

cc: @daniels @mvlad

This fixes an issue related to !1370 (merged) and !1356 (merged).

In the first one, we created the stock profile in color-noop. But at that point only output's were referencing them.

In the second one, we started referencing them in surface's, and then we'd hit the assert during shutdown sequences in which the surfaces were being leaked.

Also replaced the last usage of assert in this file.

Edited by Leandro Ribeiro

Merge request reports