Skip to content

Commit

Permalink
[bug 952 partial] Free mouse cursor surface before shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Oct 26, 2013
1 parent 78e3808 commit 25a4aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/mousecursor.hpp
Expand Up @@ -63,6 +63,8 @@ class MouseCursor
/// Set current cursor.
static void set_current(MouseCursor* pcursor)
{ current_ = pcursor; };

friend class Resources;

private:
int mid_x;
Expand Down
1 change: 1 addition & 0 deletions src/supertux/resources.cpp
Expand Up @@ -82,6 +82,7 @@ Resources::unload_shared()
sprite_manager = NULL;

/* Free mouse-cursor */
mouse_cursor->cursor.reset();
delete mouse_cursor;
}

Expand Down

0 comments on commit 25a4aaf

Please sign in to comment.