Remove unused typedef

Change-Id: I89c4a2a49af3e8af19e751a0f34bbaa8f4a3ee61
Simplify wwSprmSearcher

Change-Id: I1642556f507af9db722dadda707ae11b4080fcf0
Fix a memory leak

The stream should be freed eventually in any case.

Change-Id: I5432b48de5641adc7a13a852fea49adc18bf963b
Reviewed-on: https://gerrit.libreoffice.org/9016
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>