[Bug 222822] devel/sdl20: Fix bugs in SDL_FreeSurface function after 2.0.6 update

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Oct 6 11:03:42 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222822

            Bug ID: 222822
           Summary: devel/sdl20: Fix bugs in SDL_FreeSurface function
                    after 2.0.6 update
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: lightside at gmx.com
                CC: jbeich at FreeBSD.org

Created attachment 186945
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=186945&action=edit
Proposed patch (since 450461 revision)

The devel/sdl20 was updated to 2.0.6 version in ports r450461, but it has bugs
in SDL_FreeSurface function:
- SDL_FreeSurface deallocates surface->map even if the surface is not yet freed
https://bugzilla.libsdl.org/show_bug.cgi?id=3852
https://hg.libsdl.org/SDL/rev/a09c3f87a12f
- Memory leak in SDL_FreeSurface
https://bugzilla.libsdl.org/show_bug.cgi?id=3855
https://hg.libsdl.org/SDL/rev/3a23ca106752

Attached patch for devel/sdl20 port with upstream patches.
As a side effect, this fixes startup issue for games/pioneer for current
20170304 and latest 20171001 release versions:
https://github.com/pioneerspacesim/pioneer/issues/4174

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list