README-platforms.txt
author Sam Lantinga <slouken@libsdl.org>
Thu, 17 Apr 2014 20:02:11 -0700
changeset 8706 0c9660fdf9bf
parent 7428 9fb919fc2dd3
child 8887 5028716066ce
permissions -rw-r--r--
Fixed bug 2502 - Memory leak inside SDL_x11events.c -> X11_DispatchEvent(_THIS)

bojko_1000

Code @566:
if (data->xwindow) {
Atom _net_frame_extents = X11_XInternAtom(display, "_NET_FRAME_EXTENTS", 0);
Atom type = None;
int format;
unsigned long nitems = 0, bytes_after;
unsigned char *property;
X11_XGetWindowProperty(display, data->xwindow,
_net_frame_extents, 0, 16, 0,
XA_CARDINAL, &type, &format,
&nitems, &bytes_after, &property);

if (type != None && nitems == 4)
{
border_left = ((long*)property)[0];
border_right = ((long*)property)[1];
border_top = ((long*)property)[2];
border_bottom = ((long*)property)[3];
}
}

Code after _the fix_:
if (data->xwindow) {
Atom _net_frame_extents = X11_XInternAtom(display, "_NET_FRAME_EXTENTS", 0);
Atom type = None;
int format;
unsigned long nitems = 0, bytes_after;
unsigned char *property;
X11_XGetWindowProperty(display, data->xwindow,
_net_frame_extents, 0, 16, 0,
XA_CARDINAL, &type, &format,
&nitems, &bytes_after, &property);

if (type != None && nitems == 4)
{
border_left = ((long*)property)[0];
border_right = ((long*)property)[1];
border_top = ((long*)property)[2];
border_bottom = ((long*)property)[3];
}
X11_XFree(property);
}

I have found that leak with valgrind.
slouken@7222
     1
slouken@7222
     2
This is a list of the platforms SDL supports, and who maintains them.
slouken@7222
     3
slouken@7222
     4
Officially supported platforms
slouken@7222
     5
==============================
slouken@7222
     6
(code compiles, and thoroughly tested for release)
slouken@7222
     7
==============================
slouken@7237
     8
Windows XP/Vista/7/8
slouken@7237
     9
Mac OS X 10.5+
slouken@7222
    10
Linux 2.6+
slouken@7428
    11
iOS 5.1.1+
slouken@7222
    12
Android 2.3.3+
slouken@7222
    13
slouken@7222
    14
Unofficially supported platforms
slouken@7222
    15
================================
slouken@7222
    16
(code compiles, but not thoroughly tested)
slouken@7222
    17
================================
slouken@7222
    18
FreeBSD
slouken@7222
    19
NetBSD
slouken@7222
    20
OpenBSD
slouken@7222
    21
Solaris
slouken@7222
    22
slouken@7222
    23
Platforms supported by volunteers
slouken@7222
    24
=================================
slouken@7222
    25
Haiku - maintained by Axel Dörfler <axeld@pinc-software.de>
slouken@7222
    26
PSP - maintained by 527721088@qq.com
slouken@7222
    27
Pandora - maintained by Scott Smith <pickle136@sbcglobal.net>
slouken@7222
    28
slouken@7222
    29
Platforms that need maintainers
slouken@7222
    30
===============================