Fix style files handling: stop leaking strings.
authorQuentin Rameau <quinq+hackers@fifth.space>
Sat, 31 Oct 2015 11:34:31 +0000 (12:34 +0100)
committerChristoph Lohmann <20h@r-36.net>
Sat, 31 Oct 2015 16:50:03 +0000 (17:50 +0100)
commitd84fe71094e5eb2598344da5c6a1d6f64381142c
treec568cef67eddbc045c2b35f1ceb69187d49455f1
parentd486169fa47c0aa2c038df81fe23232a1cefff4b
Fix style files handling: stop leaking strings.

Everytime getstyle() was being called, we returned newly allocated
strings without ever freing them.
Now uri stylefiles only get allocated once at setup().

Signed-off-by: Christoph Lohmann <20h@r-36.net>
surf.c