Misc minor fixes (Fix some minor compil warnings).
This commit is contained in:
committed by
jean-pierre charras
parent
ac539b9578
commit
8876fdf4af
@@ -158,6 +158,12 @@ int bitmap2component( potrace_bitmap_t* aPotrace_bitmap, FILE* aOutfile,
|
||||
st = potrace_trace( param, aPotrace_bitmap );
|
||||
if( !st || st->status != POTRACE_STATUS_OK )
|
||||
{
|
||||
if( st )
|
||||
{
|
||||
potrace_state_free( st );
|
||||
}
|
||||
potrace_param_free( param );
|
||||
|
||||
fprintf( stderr, "Error tracing bitmap: %s\n", strerror( errno ) );
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user