[Commits] [wesnoth/wesnoth] e33556: fixup gui2 unit tests

GitHub noreply at github.com
Tue May 13 04:29:27 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: e33556d4ddcff693061b9f71f5059d1f40f08415
      https://github.com/wesnoth/wesnoth/commit/e33556d4ddcff693061b9f71f5059d1f40f08415
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-05-13 (Tue, 13 May 2014)

  Changed paths:
    M src/tests/gui/test_gui2.cpp

  Log Message:
  -----------
  fixup gui2 unit tests

The file test_gui2.cpp was causing segfaults in the debug build,
gfgtdf spotted the cause: a function was returning references to
local variables. It was most likely a minor oversight, as many
similar functions nearby made these variables static. This commit
makes those local variables static and appears to fix the crash.

Relevant irc chat: http://www.wesnoth.org/irclogs/2014/05/%23wesnoth-dev.2014-05-13.log





More information about the Commits mailing list