view build/linux/code_blocks/engine_template.xml @ 564:7d88eddd2ec7

Modified the addColored and addOutlined methods in the InstanceRenderer class to fix a memory leak. The new code attempts to insert the information in the proper map and if it already exists it will explicitly update the reference to the existing information. The new code no longer relies on the bracket operator of the std::map which was implicitly calling the equals operator of the ColoringInfo and OutlineInfo and causing the memory leak. fixes[ticket:472]
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 26 Jun 2010 00:42:14 +0000
parents b3838661971f
children
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
	<FileVersion major="1" minor="6" />
	<Project>
		<Option title="_fife.pyd" />
		<Option pch_mode="0" />
		<Option compiler="gcc" />
		<Build>
			<Target title="default">
				<Option output="../../../engine/swigwrappers/python/_fife.so" prefix_auto="0" extension_auto="0" />
				<Option type="3" />
				<Option compiler="gcc" />
				<Option createDefFile="1" />
				<Compiler>
					<Add option="-DHAVE_OPENGL" />
					<Add option="-DHAVE_ZIP" />
					<Add directory="../../../engine" />
					<Add directory="../../../engine/core" />
				</Compiler>
				<Linker>
					<Add option="-L/usr/lib" />
					<Add library="guichan_opengl" />
					<Add library="guichan_sdl" />
					<Add library="guichan" />
					<Add library="vorbis" />
					<Add library="ogg" />
					<Add library="vorbisfile" />
					<Add library="SDL_image" />
					<Add library="SDL" />
					<Add library="openal" />
					<Add library="SDL_ttf" />
					<Add library="boost_filesystem" />
					<Add library="boost_regex" />
					<Add library="png" />
					<Add library="GL" />
					<Add library="GLU" />
					<Add library="python2.5" />
					<Add directory="../../../ext/install/lib" />
				</Linker>
			</Target>
		</Build>
		<VirtualTargets>
			<Add alias="All" targets="default;" />
		</VirtualTargets>
		<Compiler>
			<Add option="-Wall" />
			<Add option="-O3" />
			<Add option="-fPIC" />
			<Add option="-D_GNU_SOURCE=1" />
			<Add option="-D_REENTRANT" />
			<Add option="-DHAVE_OPENGL" />
			<Add directory="/usr/include/python2.5" />
			<Add directory="/usr/include/SDL" />
			<Add directory="/usr/include/vorbis" />
			<Add directory="../../../ext/install/include" />
		</Compiler>
		<Linker>
			<Add option="-Wl,-rpath,../ext/install/lib,-rpath,ext/install/lib" />
		</Linker>
__FILE_INSERTION_POINT__
		<Extensions>
			<code_completion />
			<envvars />
			<debugger />
		</Extensions>
	</Project>
</CodeBlocks_project_file>