tiny win32 fixes

This commit is contained in:
John Cupitt 2016-03-29 10:13:09 +01:00
parent 618af96723
commit a4b5608e3b
2 changed files with 3 additions and 3 deletions

View File

@ -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 )) ) {

View File

@ -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