Skip to content

Commit

Permalink
Fix memory leak in vikmapslayer.c
Browse files Browse the repository at this point in the history
Ensures all Map sources actually get finalized on program exit.
  • Loading branch information
rnorris committed Jan 18, 2025
1 parent e8f0869 commit 6cec3ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vikmapslayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ void maps_layer_uninit ()
vik_mutex_free ( rq_mutex );
g_hash_table_destroy ( requests );
rq_mutex = NULL;
g_strfreev ( params_maptypes );
g_free ( params_maptypes_ids );
g_list_free_full ( __map_types, g_object_unref );
}

/****************************************/
Expand Down

0 comments on commit 6cec3ae

Please sign in to comment.