tiny win32 fixes
This commit is contained in:
parent
618af96723
commit
a4b5608e3b
@ -406,11 +406,11 @@ vips_foreign_load_pdf_file_header( VipsForeignLoad *load )
|
||||
*/
|
||||
path = vips_realpath( file->filename );
|
||||
if( !(file->uri = g_filename_to_uri( path, NULL, &error )) ) {
|
||||
free( path );
|
||||
g_free( path );
|
||||
vips_g_error( &error );
|
||||
return( -1 );
|
||||
}
|
||||
free( path );
|
||||
g_free( path );
|
||||
|
||||
if( !(pdf->doc = poppler_document_new_from_file(
|
||||
file->uri, NULL, &error )) ) {
|
||||
|
@ -1750,7 +1750,7 @@ vips_realpath( const char *path )
|
||||
char *cwd;
|
||||
|
||||
cwd = g_get_current_dir();
|
||||
real = g_build_filename( cwd, path );
|
||||
real = g_build_filename( cwd, path, NULL );
|
||||
g_free( cwd );
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user