--- pango/opentype/otlbuffer.c
+++ pango/opentype/otlbuffer.c
@@ -87,11 +87,13 @@
   FT_Error
   otl_buffer_free( OTL_Buffer buffer )
   {
+    void *v_buffer = buffer;
+
     FT_Memory memory = buffer->memory;
 
     FT_FREE( buffer->in_string );
     FT_FREE( buffer->out_string );
-    FT_FREE( buffer );
+    FT_FREE( v_buffer );
 
     return FT_Err_Ok;
   }
