Commit c012f31c authored by Committed by Corentin NoëlBrowse files
marker-layer: Use g_signal_connect_object() to connect to markers
There's no guarantee that markers will be destroyed together with the marker layer. In fact, applications can reuse markers through the already available ShumateMarkerLayer API. Avoid a potentially crashy callback by using g_signal_connect_object(), which disconnects the signal automatically when the marker layer is destroyed.