diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 9254230f9..22431de30 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1300,7 +1300,7 @@ void QMLManager::deleteDive(int id) deletedDive = alloc_dive(); copy_dive(d, deletedDive); if (!deletedTrip) { - deletedTrip = (struct dive_trip *)calloc(1, sizeof(struct dive_trip)); + deletedTrip = alloc_trip(); } else { free(deletedTrip->location); free(deletedTrip->notes); |