Commits

Alex Szpakowski committed e5fa361

Fixed a couple bugs caught by clang's static analyzer

Comments (0)

Files changed (4)

platform/macosx/love-framework.xcodeproj/project.pbxproj

 		08FB7793FE84155DC02AAC07 /* Project object */ = {
 			isa = PBXProject;
 			attributes = {
-				LastUpgradeCheck = 0460;
+				LastUpgradeCheck = 0500;
 			};
 			buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "love-framework" */;
 			compatibilityVersion = "Xcode 3.2";
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
+				COMBINE_HIDPI_IMAGES = YES;
 				DYLIB_COMPATIBILITY_VERSION = 9.0;
 				DYLIB_CURRENT_VERSION = 9.0;
 				FRAMEWORK_VERSION = A;
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
+				COMBINE_HIDPI_IMAGES = YES;
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DYLIB_COMPATIBILITY_VERSION = 9.0;
 				DYLIB_CURRENT_VERSION = 9.0;

platform/macosx/love.xcodeproj/project.pbxproj

 		29B97313FDCFA39411CA2CEA /* Project object */ = {
 			isa = PBXProject;
 			attributes = {
-				LastUpgradeCheck = 0460;
+				LastUpgradeCheck = 0500;
 			};
 			buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "love" */;
 			compatibilityVersion = "Xcode 3.2";

src/modules/font/freetype/TrueTypeRasterizer.cpp

 
 GlyphData *TrueTypeRasterizer::getGlyphData(uint32 glyph) const
 {
-	love::font::GlyphMetrics glyphMetrics;
+	love::font::GlyphMetrics glyphMetrics = {};
 	FT_Glyph ftglyph;
 
 	// Initialize

src/modules/thread/wrap_LuaThread.cpp

 			{
 				for (int j = i; j >= 0; j--)
 					delete args[j];
-				delete args;
+				delete[] args;
 				return luaL_argerror(L, i+2, "boolean, number, string, love type, or flat table expected");
 			}
 		}