- fixed memory leaks
This commit is contained in:
parent
86a0aada3b
commit
a8bfc2d2bf
@ -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 */
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user