Bug 97617 - XFreePixmap() memory leak with bitmaps
Summary: XFreePixmap() memory leak with bitmaps
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xcursor (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium trivial
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-06 18:14 UTC by neodampf
Modified: 2018-08-10 20:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description neodampf 2016-09-06 18:14:18 UTC
int main () {
    const    char* NIL = 0 ;
    Display* dpy           ;
    Window   w             ;
    Pixmap   bm0           ;
    Colormap cmap          ;
    uint32_t white         ;
    uint32_t black         ;
    char     data[8] = {0} ;
    dpy     = XOpenDisplay(NIL) ;
    if (dpy == 0) throw 0x01 ;
    white   = WhitePixel (dpy,DefaultScreen(dpy)) ;
    black   = BlackPixel (dpy,DefaultScreen(dpy)) ;
    w       = XCreateSimpleWindow(dpy, RootWindow(dpy,0), 0,0, 640,480, 0, 0, black);

    bm0  = XCreatePixmap   (dpy,w,64,64,1 ) ;          //leaks
    // bm0  = XCreatePixmap   (dpy,w,64,64,24) ;       //doesn' leak
    // bm0  = XCreateBitmapFromData (dpy,w,data,8,8) ; //leaks

    XFreePixmap  (dpy,bm0) ;
    XDestroyWindow(dpy,w) ;
    XCloseDisplay (dpy)   ;
    return 0 ;
}
Comment 1 neodampf 2016-09-06 18:16:21 UTC
memory leaks detected by valgrind (15 blocks in use at exit)
Comment 2 GitLab Migration User 2018-08-10 20:17:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libxcursor/issues/2.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.