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

RestoreScreen() expects no null pointer passed as argument 5,
is passed to memmove


Origin commit data
------------------
Commit: f0b027ac00
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-05-06 (Thu, 06 May 2021)
This commit is contained in:
2021-05-06 22:09:24 +02:00
committed by vanhofen
parent 7337bd7beb
commit f4621f28d4

View File

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