Browse Source

Fix leak in pugl

gh-pages
falkTX 9 years ago
parent
commit
4c5a964f66
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      dgl/src/pugl/pugl_x11.c

+ 5
- 5
dgl/src/pugl/pugl_x11.c View File

@@ -353,15 +353,15 @@ puglProcessEvents(PuglView* view)
}
dispatchKey(view, &event, false);
break;
case ClientMessage:
if (!strcmp(XGetAtomName(view->impl->display,
event.xclient.message_type),
"WM_PROTOCOLS")) {
case ClientMessage: {
char* name = XGetAtomName(view->impl->display, event.xclient.message_type);
if (!strcmp(name, "WM_PROTOCOLS")) {
if (view->closeFunc) {
view->closeFunc(view);
}
}
break;
XFree(name);
} break;
#ifdef XKEYFOCUSGRAB
case EnterNotify:
XSetInputFocus(view->impl->display,


Loading…
Cancel
Save