diff --git a/bochs/gui/x.cc b/bochs/gui/x.cc index c71b158f1..69266bc4e 100644 --- a/bochs/gui/x.cc +++ b/bochs/gui/x.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: x.cc,v 1.102 2006-02-22 19:18:28 vruppert Exp $ +// $Id: x.cc,v 1.103 2006-04-14 13:27:17 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002 MandrakeSoft S.A. @@ -542,6 +542,8 @@ bx_x_gui_c::specific_init(int argc, char **argv, unsigned tilewidth, unsigned ti XSetWMProperties(bx_x_display, win, &windowName, &iconName, argv, argc, &size_hints, &wm_hints, &class_hints); + XFree(windowName.value); + XFree(iconName.value); } /* Select event types wanted */ diff --git a/bochs/plugin.cc b/bochs/plugin.cc index 3ac7b508d..5676af511 100644 --- a/bochs/plugin.cc +++ b/bochs/plugin.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: plugin.cc,v 1.15 2006-01-21 09:28:49 vruppert Exp $ +// $Id: plugin.cc,v 1.16 2006-04-14 13:27:17 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // This file defines the plugin and plugin-device registration functions and @@ -515,6 +515,7 @@ void pluginRegisterDeviceDevmodel(plugin_t *plugin, plugintype_t type, bx_devmod // Core devices are present whether or not we are using plugins, so // they are managed by the same code in iodev/devices.cc whether // plugins are on or off. + free(device); return; // Do not add core devices to the devices list. case PLUGTYPE_OPTIONAL: case PLUGTYPE_USER: