mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +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
Origin commit data
------------------
Commit: f0b027ac00
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-05-06 (Thu, 06 May 2021)
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