Permalink
Browse files

Font::GetDoubleByteString: remove bogus assert

was preventing valgrind debugging too
  • Loading branch information...
1 parent e98c2dd commit 15ca13daed84b408aba2855e806fe59e9eb21fe0 @lynxlynxlynx lynxlynxlynx committed Apr 17, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 gemrb/core/Font.cpp
View
@@ -616,10 +616,7 @@ size_t Font::GetDoubleByteString(const unsigned char* string, ieWord* &dbString)
// we dont always use everything we allocated.
// realloc in this case to avoid static anylizer warnings about "garbage values"
// since this realloc always truncates it *should* be quick
- ieWord* test = dbString;
dbString = (ieWord*)realloc(dbString, (dbLen+1) * sizeof(ieWord));
- // since this is truncation we *should* get the same ptr back
- assert(test == dbString);
return dbLen;
}

0 comments on commit 15ca13d

Please sign in to comment.