Add some sanity checks

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Correctly handle multi-line subjects in patches

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Prevent possible crash if debug is enabled

A git cmd might contain "%s" (e.g. reference browser).

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Correctly free buffer array

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Move check for null-pointer up

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Do not leak resources

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Dropped unused code

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Drop unused variable

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Column widths in browse references dialog are now saved/restored

Thanks for the idea from the patch by Igor Palkin

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>