mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
Store dc_kml_t::locations as Option<dc_array_t> instead of pointer
This commit is contained in:
@@ -135,12 +135,12 @@ pub unsafe fn dc_mimeparser_empty(mimeparser: &mut dc_mimeparser_t) {
|
||||
dc_e2ee_thanks(&mut (*mimeparser).e2ee_helper);
|
||||
|
||||
if let Some(location_kml) = (*mimeparser).location_kml.as_mut() {
|
||||
dc_kml_unref(location_kml as *mut dc_kml_t);
|
||||
dc_kml_unref(location_kml);
|
||||
}
|
||||
(*mimeparser).location_kml = None;
|
||||
|
||||
if let Some(message_kml) = (*mimeparser).message_kml.as_mut() {
|
||||
dc_kml_unref(message_kml as *mut dc_kml_t);
|
||||
dc_kml_unref(message_kml);
|
||||
}
|
||||
(*mimeparser).message_kml = None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user