lakka: Remove unused variables
lakka: Fix a few missing NULL checks.

If these are ever NULL, we'd hit null pointer dereferencing.
lakka: Remove three unnecessary NULL checks.

These are already checked for after the initialization of themselves.
lakka: Guard against the possibility of realloc failing
Merge pull request #930 from lioncash/lakka

Small changes to lakka