caja-sendto-command: don't leak memory

Closes https://github.com/mate-desktop/caja-extensions/pull/7
gajim plugin: don't leak memory
pidgin plugin: various fixes

- add missing spaces (code looked ugly)
- remove a GError variable which has never been used actually
  (and avoid dereferencing NULL pointer at the same time)
- don't leak memory