Hi,
I got crash when zoom in and zoom out map very fast. I have OSM layer,
some paths and orientation points - I don't know if it's important.
But I found solution. Patch in attachment.
>From 9aaf12aca21a83a2f563cb6a0f6bfe74d34df2ec Mon Sep 17 00:00:00 2001
From: Szymon Bigos <[email protected]>
Date: Fri, 21 Aug 2015 21:33:36 +0200
Subject: [PATCH] Prevent crash when map is zoom in/out very fast
---
src/mapcache.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/mapcache.c b/src/mapcache.c
index b92f51f..691bf2b 100644
--- a/src/mapcache.c
+++ b/src/mapcache.c
@@ -215,14 +215,17 @@ mapcache_extra_t a_mapcache_get_extra ( gint x, gint y, gint z, guint16 type, gi
*/
static void flush_matching ( gchar *str )
{
- if ( queue_tail == NULL )
+ g_mutex_lock(mc_mutex);
+
+ if ( queue_tail == NULL ) {
+ g_mutex_unlock(mc_mutex);
return;
+ }
List *loop = queue_tail;
List *tmp;
gint len = strlen(str);
- g_mutex_lock(mc_mutex);
do {
tmp = loop->next;
if ( tmp ) {
--
1.9.1
------------------------------------------------------------------------------
_______________________________________________
Viking-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/