if (data->file_stream) { PR_Close(data->file_stream); data->file_stream = 0;
if (data->input_file_stream) { data->input_file_stream->close(); delete data->input_file_stream; data->input_file_stream = nsnull;
MimePartBufferReset (MimePartBufferData *data){  NS_ASSERTION(data, "MimePartBufferReset: no data");  if (!data) return;  PR_FREEIF(data->part_buffer);  data->part_buffer_fp = 0;  if (data->file_stream)	{	  PR_Close(data->file_stream);	  data->file_stream = 0;	}  if (data->file_buffer_name)	{	  PR_Delete(data->file_buffer_name);	  PR_Free(data->file_buffer_name);	  data->file_buffer_name = 0;	}}