Fix always-true condition

CrCascadePrivate->sheets is a statically-sized array inside the
struct; it can't be NULL.

GNOME/gnome-shell!861 (comment 659216)
parent 582bfe83
Pipeline #135038 passed with stages
in 7 minutes and 52 seconds
......@@ -199,7 +199,7 @@ cr_cascade_destroy (CRCascade * a_this)
if (PRIVATE (a_this)) {
gulong i = 0;
for (i = 0; PRIVATE (a_this)->sheets && i < NB_ORIGINS; i++) {
for (i = 0; i < NB_ORIGINS; i++) {
if (PRIVATE (a_this)->sheets[i]) {
if (cr_stylesheet_unref
(PRIVATE (a_this)->sheets[i])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment