diff --git a/ChangeLog b/ChangeLog index abb1b926..f26cfdfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,10 @@ Changes since version 0.52.0: - fixed crash with InfoPanel in multihead dpy - Fixed bug in WPrefs that added a new line at the end of autostart script at every save, growing it indefinitely. +- fixed a memory leak in wrlib (Wolfram Gloger ) +- fixed crash during forced shutdown of X (Wolfram Gloger + ) + Changes since version 0.51.2: ............................. diff --git a/src/actions.c b/src/actions.c index 37b94a36..f9b2b181 100644 --- a/src/actions.c +++ b/src/actions.c @@ -928,7 +928,8 @@ wIconifyWindow(WWindow *wwin) wwin->icon = wIconCreate(wwin); } - wwin->icon->mapped = 1; + if (wwin->icon) + wwin->icon->mapped = 1; wwin->flags.miniaturized = 1; wwin->flags.mapped = 0; diff --git a/src/startup.c b/src/startup.c index daa5d812..695c0d32 100644 --- a/src/startup.c +++ b/src/startup.c @@ -203,7 +203,7 @@ catchXError(Display *dpy, XErrorEvent *error) *---------------------------------------------------------------------- */ static int -handleXIO(Display *dpy) +handleXIO(Display *xio_dpy) { dpy = NULL; Exit(0);