mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
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:
@@ -80,6 +80,7 @@ void CRateBanner::paint(const bool &do_save_bg)
|
|||||||
addIcons(rat_icon_bg, rat_max);
|
addIcons(rat_icon_bg, rat_max);
|
||||||
|
|
||||||
paintCCItems();
|
paintCCItems();
|
||||||
|
if (pixbuf)
|
||||||
frameBuffer->RestoreScreen(x_base, y, w_tmp, height, pixbuf);
|
frameBuffer->RestoreScreen(x_base, y, w_tmp, height, pixbuf);
|
||||||
delete[] pixbuf;
|
delete[] pixbuf;
|
||||||
pixbuf = NULL;
|
pixbuf = NULL;
|
||||||
|
Reference in New Issue
Block a user