Skip to content

Commit

Permalink
Updated XCB-TRL (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerjenigeUberMensch authored Aug 7, 2024
1 parent 0d8ed35 commit d7e4a0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/XCB-TRL/xcb_trl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,9 @@ XCBGetPropertyReply(
if(reply && reply->type != XCB_NONE)
{
if(!__XValidFormatThrow(display, cookie, reply) || !__XValidSizeThrow(display, cookie, reply))
{ reply = NULL;
{
free(reply);
reply = NULL;
}
}
return reply;
Expand Down Expand Up @@ -3584,6 +3586,7 @@ XCBWipeGetWMProtocols(
_xcb_push_func(ret, _fn);
#endif
xcb_icccm_get_wm_protocols_reply_wipe(protocols);
protocols->_reply = NULL;
}

XCBCookie
Expand Down Expand Up @@ -3788,11 +3791,14 @@ XCBGetWMClassReply(
#endif
XCBGenericError *err = NULL;
xcb_get_property_cookie_t cookie1 = { .sequence = cookie.sequence };
memset(class_return, 0, sizeof(XCBWMClass));
u8 status = xcb_icccm_get_wm_class_reply(display, cookie1, class_return, &err);

if(err)
{
_xcb_err_handler(display, err);
XCBWipeGetWMClass(class_return);
class_return->_reply = NULL;
status = 0;
}

Expand All @@ -3811,6 +3817,7 @@ XCBWipeGetWMClass(
}
#endif
xcb_icccm_get_wm_class_reply_wipe(class);
class->_reply = NULL;
}


Expand Down

0 comments on commit d7e4a0f

Please sign in to comment.