mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 19:23:25 +00:00
Don't directly destroy an object.
Issue found by cppcheck.
This commit is contained in:
parent
0777b1ed46
commit
28694c5814
@ -1036,7 +1036,8 @@ void menu::draw()
|
|||||||
|
|
||||||
bg_restore();
|
bg_restore();
|
||||||
|
|
||||||
clip_rect_setter(video().getSurface(), clip_rect(), clip_rect() != NULL);
|
clip_rect_setter clipping_rect =
|
||||||
|
clip_rect_setter(video().getSurface(), clip_rect(), clip_rect() != NULL);
|
||||||
|
|
||||||
draw_contents();
|
draw_contents();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user