diff --git a/Makefile b/Makefile index 70ce2a4d4..0586f6017 100644 --- a/Makefile +++ b/Makefile @@ -68,4 +68,4 @@ distclean: test: all echo test -.PHONY: test +.PHONY: test linux diff --git a/linux/main.cpp b/linux/main.cpp index c51d27f82..1576a5be7 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -207,13 +207,15 @@ public: llmr::Map map; }; -MapView *mapView; +MapView *mapView = nullptr; namespace llmr { namespace platform { void restart(void *) { - mapView->dirty = true; + if (mapView) { + mapView->dirty = true; + } } diff --git a/src/style/sprite.cpp b/src/style/sprite.cpp index e2707f5b9..ceef26739 100644 --- a/src/style/sprite.cpp +++ b/src/style/sprite.cpp @@ -121,7 +121,6 @@ void warningHandler(png_structp png, png_const_charp error_msg) { } void Sprite::loadImage(const std::string& data) { - return; std::lock_guard lock(mtx); Buffer buffer(data);