Fixed memory leaks found with valgrind
This commit is contained in:
parent
4e422316f2
commit
994f908438
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user