mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +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,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user