* fix 2 memory leaks in MacOS resource fork handler, Savannah bug #16631
This commit is contained in:
parent
8cfa8bd51a
commit
de0a96c5dd
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
Apply patch by Derek Clegg to fix 2 memory leak in MacOS resource
|
||||
fork handler, Savannah bug #16631.
|
||||
|
||||
* src/base/ftobjs.c (load_face_in_embedded_rfork):
|
||||
Replace FT_Stream_Close() by FT_Stream_Free() to fix memory leak.
|
||||
|
||||
* src/base/ftrfrk.c (raccess_guess_linux_double_from_file_name):
|
||||
Replace FT_Stream_Close() by FT_Stream_Free() to fix memory leak.
|
||||
|
||||
2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
* build/unix/configure.raw: Add a fallback to disable Carbon
|
||||
|
|
|
@ -1531,7 +1531,7 @@
|
|||
|
||||
error = IsMacResource( library, stream2, offsets[i],
|
||||
face_index, aface );
|
||||
FT_Stream_Close( stream2 );
|
||||
FT_Stream_Free( stream2, 0 );
|
||||
|
||||
FT_TRACE3(( "%s\n", error ? "failed": "successful" ));
|
||||
|
||||
|
|
|
@ -647,7 +647,7 @@
|
|||
error = raccess_guess_apple_double( library, stream2, file_name,
|
||||
&nouse, result_offset );
|
||||
|
||||
FT_Stream_Close( stream2 );
|
||||
FT_Stream_Free( stream2, 0 );
|
||||
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue