# HG changeset patch # User rosfran # Date 1164721471 0 # Node ID a7237ce91c3bfd1ca92fd9e9a816b054ce2361a7 # Parent 9f1077ae5637a1a3e5fc03b75110dbcb10ed6366 [svn r128] Added cleanup methods to the GByteArray buffer. diff -r 9f1077ae5637 -r a7237ce91c3b libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Nov 28 03:17:22 2006 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Nov 28 13:44:31 2006 +0000 @@ -208,6 +208,11 @@ g_object_unref (myth_handle->file_transfer); myth_handle->file_transfer = NULL; } + + if (myth_handle->buffer) { + g_byte_array_free (myth_handle->buffer, TRUE); + myth_handle->buffer = NULL; + } g_free (myth_handle);