]> err.no Git - libchamplain/commitdiff
Memory leak fix: g_string_append() doesn't need a duplicate
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Fri, 24 Apr 2009 21:53:53 +0000 (23:53 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 26 Apr 2009 15:44:39 +0000 (11:44 -0400)
champlain/champlain-network-map-source.c

index 8b998cafa6d887c3af30da0c4f1dcd63bbbf034f..c916fb8770ee445b5845cb5652a25b11e7982a83 100644 (file)
@@ -267,7 +267,7 @@ champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *network_ma
           g_string_append (ret, value);
         }
       else
-        g_string_append (ret, g_strdup (token));
+        g_string_append (ret, token);
 
       token = tokens[++i];
     }