[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/lib/libx11][upstream-unstable] 2 commits: Don't try to destroy NULL condition variables



Title: GitLab

Timo Aaltonen pushed to branch upstream-unstable at X Strike Force / lib / libx11

Commits:

2 changed files:

Changes:

  • configure.ac
    1 1
     
    
    2 2
     # Initialize Autoconf
    
    3 3
     AC_PREREQ([2.60])
    
    4
    -AC_INIT([libX11], [1.7.4],
    
    4
    +AC_INIT([libX11], [1.7.5],
    
    5 5
             [https://gitlab.freedesktop.org/xorg/lib/libx11/issues], [libX11])
    
    6 6
     AC_CONFIG_SRCDIR([Makefile.am])
    
    7 7
     AC_CONFIG_HEADERS([src/config.h include/X11/XlibConf.h])
    

  • src/xcb_disp.c
    ... ... @@ -102,8 +102,10 @@ void _XFreeX11XCBStructure(Display *dpy)
    102 102
     		dpy->xcb->pending_requests = tmp->next;
    
    103 103
     		free(tmp);
    
    104 104
     	}
    
    105
    -	xcondition_clear(dpy->xcb->event_notify);
    
    106
    -	xcondition_clear(dpy->xcb->reply_notify);
    
    105
    +	if (dpy->xcb->event_notify)
    
    106
    +		xcondition_clear(dpy->xcb->event_notify);
    
    107
    +	if (dpy->xcb->reply_notify)
    
    108
    +		xcondition_clear(dpy->xcb->reply_notify);
    
    107 109
     	xcondition_free(dpy->xcb->event_notify);
    
    108 110
     	xcondition_free(dpy->xcb->reply_notify);
    
    109 111
     	Xfree(dpy->xcb);
    


  • Reply to: