# HG changeset patch # User rosfran # Date 1177533060 -3600 # Node ID 2097ef19ce9a7b0f5481376282b53f1976340a1f # Parent 5c5cff842d57cc23d3549c40308f85a8d0d5700a [svn r602] Test scripts variable clean-up. diff -r 5c5cff842d57 -r 2097ef19ce9a gmyth/tests/gmyth_test_transcode.c --- a/gmyth/tests/gmyth_test_transcode.c Wed Apr 25 15:53:19 2007 +0100 +++ b/gmyth/tests/gmyth_test_transcode.c Wed Apr 25 21:31:00 2007 +0100 @@ -34,11 +34,16 @@ teste = gmyth_jobqueue_change_cmd(transcode, "STOP", "JOB_TRANSCODE"); - fprintf(stdout, SYNC_STRING); fflush(NULL); getchar(); + if ( transcode != NULL ) + g_object_unref( transcode ); + + if ( backend_info != NULL ) + g_object_unref( backend_info ); + return(0); } diff -r 5c5cff842d57 -r 2097ef19ce9a gmyth/tests/gmyth_test_vlc.c --- a/gmyth/tests/gmyth_test_vlc.c Wed Apr 25 15:53:19 2007 +0100 +++ b/gmyth/tests/gmyth_test_vlc.c Wed Apr 25 21:31:00 2007 +0100 @@ -36,5 +36,8 @@ fflush(NULL); getchar(); + if ( backend_info != NULL ) + g_object_unref( backend_info ); + return(0); }