summaryrefslogtreecommitdiff
path: root/src/gui/models/langlistmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/models/langlistmodel.h')
-rw-r--r--src/gui/models/langlistmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/models/langlistmodel.h b/src/gui/models/langlistmodel.h
index 839a836e7..f8c67ad30 100644
--- a/src/gui/models/langlistmodel.h
+++ b/src/gui/models/langlistmodel.h
@@ -116,7 +116,7 @@ class LangListModel final : public ExtendedListModel
for (int f = 0; f < langs_count; f ++)
{
Image *const img = mIcons[f];
- if (img)
+ if (img != nullptr)
img->decRef();
}
}