From cef3b29d9488d8273113e0c925d1f15c3154a56d Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 20 Apr 1999 20:56:30 +0000 Subject: [PATCH] Added some fixes from people, and updated Changelog about this. --- ChangeLog | 4 ++++ src/actions.c | 3 ++- src/startup.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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);