From 13bf2a7fddff4242581eec62243222acd49a1537 Mon Sep 17 00:00:00 2001 From: akir Date: Thu, 26 Aug 2004 01:51:21 +0000 Subject: fixed 2 possible memleaks --- ChangeLog | 2 ++ src/Ewmh.cc | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4045d80..8f91e86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.10: *04/08/26: + * Fixed 2 possible Memleaks (Mathias) + Ewmh.cc * Re-implement bevels in toolbar, plus numerous toolbar-related theme fixes => old styles now look like they used to! (Simon) Toolbar.cc ToolbarItem.h ToolTheme.cc ToolbarTheme.cc ToolFactory.cc diff --git a/src/Ewmh.cc b/src/Ewmh.cc index c5c327b..c19f06f 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Ewmh.cc,v 1.48 2004/07/21 18:56:34 fluxgen Exp $ +// $Id: Ewmh.cc,v 1.49 2004/08/26 01:51:21 akir Exp $ #include "Ewmh.hh" @@ -198,6 +198,7 @@ void Ewmh::setupFrame(FluxboxWindow &win) { } } + XFree(data); } setupState(win); @@ -485,6 +486,8 @@ void Ewmh::updateWorkarea(BScreen &screen) { PropModeReplace, (unsigned char *)coords, 4*screen.getCount()); + + delete[] coords; } void Ewmh::updateState(FluxboxWindow &win) { -- cgit v0.11.2