Don't directly destroy an object.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2011-04-09 16:00:13 +00:00
parent 0777b1ed46
commit 28694c5814

View File

@ -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();