fix bound on for loop (gaaaargh). (main): re-enable shutdown of the
2002-12-02 James Henstridge <james@daa.com.au> * src/thumbnailer.c (main): fix bound on for loop (gaaaargh). (main): re-enable shutdown of the library * src/Makefile.am (libfont_method_la_LIBADD): fix typo. * src/ftstream-vfs.c (FT_New_URI_Face): FT_Stream is a pointer, so sizeof(FT_Stram) gives the wrong result :(
This commit is contained in:
parent
24a577acd6
commit
2f46bdaa37
4 changed files with 15 additions and 8 deletions
|
@ -27,7 +27,6 @@ vfs_stream_close(FT_Stream stream)
|
|||
{
|
||||
GnomeVFSHandle *handle = (GnomeVFSHandle *)stream->descriptor.pointer;
|
||||
|
||||
g_message("closing handle");
|
||||
if (!handle)
|
||||
return;
|
||||
gnome_vfs_close(handle);
|
||||
|
@ -91,7 +90,7 @@ FT_New_URI_Face(FT_Library library,
|
|||
FT_Stream stream;
|
||||
FT_Error error;
|
||||
|
||||
if ((stream = calloc(1, sizeof(FT_Stream))) == NULL)
|
||||
if ((stream = calloc(1, sizeof(*stream))) == NULL)
|
||||
return FT_Err_Out_Of_Memory;
|
||||
|
||||
error = vfs_stream_open(stream, uri);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue