Fixed memory leaks found with valgrind

This commit is contained in:
Volker Ruppert 2014-04-06 19:01:38 +00:00
parent 4e422316f2
commit 994f908438
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001-2013 The Bochs Project
// Copyright (C) 2001-2014 The Bochs Project
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@ -2032,6 +2032,7 @@ void bx_x_gui_c::get_capabilities(Bit16u *xres, Bit16u *yres, Bit16u *bpp)
SizeID original_size_id = XRRConfigCurrentConfiguration(conf, &original_rotation);
*xres = xrrs[original_size_id].width;
*yres = xrrs[original_size_id].height;
free(conf);
}
else {
int screen = DefaultScreen(dpy);

View File

@ -335,6 +335,7 @@ void logfunctions::put(const char *p)
n[i] = tolower(p[i]);
put((const char*)n, p);
free(n);
}
void logfunctions::put(const char *n, const char *p)