add mssing g_option_context_free() to vipsedit
We were not freeing the argument parse context in vipsedit.c. Thanks zodf0055980 see https://github.com/libvips/libvips/issues/1868
This commit is contained in:
parent
888b5654a0
commit
c99dc0fe03
@ -753,8 +753,6 @@ main( int argc, char **argv )
|
||||
|
||||
g_option_context_free( context );
|
||||
|
||||
/* We don't free this on error exit, sadly.
|
||||
*/
|
||||
#ifdef HAVE_G_WIN32_GET_COMMAND_LINE
|
||||
g_strfreev( argv );
|
||||
#endif /*HAVE_G_WIN32_GET_COMMAND_LINE*/
|
||||
|
@ -173,6 +173,7 @@ main( int argc, char **argv )
|
||||
if( argc != 2 ) {
|
||||
fprintf( stderr, _( "usage: %s [OPTION...] vips-file\n" ),
|
||||
g_get_prgname() );
|
||||
|
||||
exit( -1 );
|
||||
}
|
||||
|
||||
@ -269,8 +270,8 @@ main( int argc, char **argv )
|
||||
|
||||
g_object_unref( im );
|
||||
|
||||
/* We don't free this on error exit, sadly.
|
||||
*/
|
||||
g_option_context_free( context );
|
||||
|
||||
#ifdef HAVE_G_WIN32_GET_COMMAND_LINE
|
||||
g_strfreev( argv );
|
||||
#endif /*HAVE_G_WIN32_GET_COMMAND_LINE*/
|
||||
|
Loading…
Reference in New Issue
Block a user