Fix errors from commit f0a169e.
authorLei Zhang <thestig@chromium.org>
Fri, 8 May 2015 18:33:26 +0000 (11:33 -0700)
committerLei Zhang <thestig@chromium.org>
Fri, 8 May 2015 18:33:26 +0000 (11:33 -0700)
commit470408c2ffe71e99cebad0d1d6887f1723f02cef
tree23bb5ed2651e093c6090aab0575ebfbbce74a983
parentf0a169e6fd5718995fa6ef8749c8d16cdad84985
Fix errors from commit f0a169e.

- fread() returns the number of items read.
- fix a memory leak in error handling.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1135713004
core/src/fxge/ge/fx_ge_fontmap.cpp