Need to add everything we remove or otherwise it complains we are trying to remove something we did not add
BUGS: 280123
FIXED-IN: 4.7.2
(cherry picked from commit af4316a938)
Otherwise we were accepting
/usr/share/texmf-dist/fonts/vf/public/yhmath/yhcmex10.vf
to font named cmex10 (since it is a substring) and it was veeeeeery bad since cmex10 was the base font of yhcmex10 and basically instead of going to the base font we ended up in the virtual font itself causing an infinite loop for some characters
Windows guys, not sure if that needs to be a \ in windows, you might want to give it a try
CCMAIL: kde-windows@kde.org
(cherry picked from commit 673eb41393)
* Remove m_word_chars_map, m_XY_cut_tree, m_lines and m_line_rects: They are not really member
variables and where used only to pass info from one method to another, we use variables and parameters
for that now
* Make output parameters be * instead of & following Qt guidelines
* Fix all memory leaks, valgrind is happy now :-)
1. I replaced the previous fixed memory array with dynamic memory allocation
(line 18-20).
2. Put some extra check so that we do not access under or over the boundary
of arrays (line 29-30,37-38)
3. Removed some unnecessary parts(line 46-48,56-58)
4. Instead of appending already existing element, I have created new
TinyTextEntity elements and removed them after usage(72-73,79)
5. Restored the deletion of words(78). Deletion of word will crash the
program, as all the TinyTextEntity in the nodes of the tree has reference to
words. This memory will be deallocated at line 105.
6. Another change like 4 is done in line 96-97.