[svn r128] Added cleanup methods to the GByteArray buffer. trunk
authorrosfran
Tue Nov 28 13:44:31 2006 +0000 (2006-11-28)
branchtrunk
changeset 127a7237ce91c3b
parent 126 9f1077ae5637
child 128 d183df7d8459
[svn r128] Added cleanup methods to the GByteArray buffer.
libgnomevfs2-mythtv/modules/mythtv-method.c
     1.1 --- a/libgnomevfs2-mythtv/modules/mythtv-method.c	Tue Nov 28 03:17:22 2006 +0000
     1.2 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c	Tue Nov 28 13:44:31 2006 +0000
     1.3 @@ -208,6 +208,11 @@
     1.4          g_object_unref (myth_handle->file_transfer);
     1.5  	myth_handle->file_transfer = NULL;
     1.6      }
     1.7 +    
     1.8 +    if (myth_handle->buffer) {
     1.9 +			g_byte_array_free (myth_handle->buffer, TRUE);
    1.10 +			myth_handle->buffer = NULL;
    1.11 +    }
    1.12  
    1.13      g_free (myth_handle);
    1.14