fixed 2 possible memleaks

This commit is contained in:
akir 2004-08-26 01:51:21 +00:00
parent 5337fc6640
commit 13bf2a7fdd
2 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day) (Format: Year/Month/Day)
Changes for 0.9.10: Changes for 0.9.10:
*04/08/26: *04/08/26:
* Fixed 2 possible Memleaks (Mathias)
Ewmh.cc
* Re-implement bevels in toolbar, plus numerous toolbar-related theme * Re-implement bevels in toolbar, plus numerous toolbar-related theme
fixes => old styles now look like they used to! (Simon) fixes => old styles now look like they used to! (Simon)
Toolbar.cc ToolbarItem.h ToolTheme.cc ToolbarTheme.cc ToolFactory.cc Toolbar.cc ToolbarItem.h ToolTheme.cc ToolbarTheme.cc ToolFactory.cc

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // 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" #include "Ewmh.hh"
@ -198,6 +198,7 @@ void Ewmh::setupFrame(FluxboxWindow &win) {
} }
} }
XFree(data);
} }
setupState(win); setupState(win);
@ -485,6 +486,8 @@ void Ewmh::updateWorkarea(BScreen &screen) {
PropModeReplace, PropModeReplace,
(unsigned char *)coords, (unsigned char *)coords,
4*screen.getCount()); 4*screen.getCount());
delete[] coords;
} }
void Ewmh::updateState(FluxboxWindow &win) { void Ewmh::updateState(FluxboxWindow &win) {