[svn r602] Test scripts variable clean-up. trunk
authorrosfran
Wed Apr 25 21:31:00 2007 +0100 (2007-04-25)
branchtrunk
changeset 5962097ef19ce9a
parent 595 5c5cff842d57
child 597 945d3f5da6fc
[svn r602] Test scripts variable clean-up.
gmyth/tests/gmyth_test_transcode.c
gmyth/tests/gmyth_test_vlc.c
     1.1 --- a/gmyth/tests/gmyth_test_transcode.c	Wed Apr 25 15:53:19 2007 +0100
     1.2 +++ b/gmyth/tests/gmyth_test_transcode.c	Wed Apr 25 21:31:00 2007 +0100
     1.3 @@ -34,11 +34,16 @@
     1.4  
     1.5      teste = gmyth_jobqueue_change_cmd(transcode, "STOP", "JOB_TRANSCODE");
     1.6  
     1.7 -
     1.8      fprintf(stdout, SYNC_STRING);
     1.9      fflush(NULL);
    1.10      getchar();
    1.11  
    1.12 +    if ( transcode != NULL )
    1.13 +    	g_object_unref( transcode );
    1.14 +    
    1.15 +    if ( backend_info != NULL )
    1.16 +    	g_object_unref( backend_info );
    1.17 +
    1.18      return(0);
    1.19  
    1.20  }
     2.1 --- a/gmyth/tests/gmyth_test_vlc.c	Wed Apr 25 15:53:19 2007 +0100
     2.2 +++ b/gmyth/tests/gmyth_test_vlc.c	Wed Apr 25 21:31:00 2007 +0100
     2.3 @@ -36,5 +36,8 @@
     2.4      fflush(NULL);
     2.5      getchar();
     2.6  
     2.7 +    if ( backend_info != NULL )
     2.8 +    	g_object_unref( backend_info );
     2.9 +
    2.10      return(0);
    2.11  }