ubuntu-x-swat team mailing list archive
-
ubuntu-x-swat team
-
Mailing list archive
-
Message #00682
[Bug 374718] [NEW] calls to glX* functions leak memory
Public bug reported:
It seems that whenever you call a glX* function from flgrx it doesn't
properly release memory it has allocated and cause massive
haemorrhaging.
this code (in c):
Display *xdpy;
XVisualInfo xv, *xvi = NULL;
xdpy = XOpenDisplay (":0.0");
if (xdpy != NULL)
{
xv.class = TrueColor;
xvi = XGetVisualInfo (p->xdpy, VisualClassMask, &xv, &n_items);
if (xvi != NULL)
{
XFree (xvi);
}
}
produces no errors and no memory leaks. whereas this code:
Display *xdpy;
XVisualInfo xv, *xvi = NULL;
xdpy = XOpenDisplay (":0.0");
if (xdpy != NULL)
{
xv.class = TrueColor;
xvi = XGetVisualInfo (p->xdpy, VisualClassMask, &xv, &n_items);
if (xvi != NULL)
{
xcxt = glXCreateContext (p->xdpy, xvi, NULL, True);
if (xcxt != NULL)
{
glXDestroyContext (p->xdpy, xcxt);
}
XFree (xvi);
}
}
produces over 700 memory leaks. the valgrind --leak-check=full output is
attached
** Affects: fglrx-installer (Ubuntu)
Importance: Undecided
Status: New
--
calls to glX* functions leak memory
https://bugs.launchpad.net/bugs/374718
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to fglrx-installer in ubuntu.
Follow ups
References