rate_banner.cpp: try to fix possible crash if pixbuf = NULL

RestoreScreen() expects no null pointer passed as argument 5,
is passed to memmove
This commit is contained in:
2021-05-03 17:18:54 +02:00
parent 83211c2b69
commit f72ca5887a

View File

@@ -80,6 +80,7 @@ void CRateBanner::paint(const bool &do_save_bg)
addIcons(rat_icon_bg, rat_max);
paintCCItems();
if (pixbuf)
frameBuffer->RestoreScreen(x_base, y, w_tmp, height, pixbuf);
delete[] pixbuf;
pixbuf = NULL;