diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-02-20 23:02:44 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-02-20 23:02:44 (GMT) |
commit | 0769fafb253b846b58cd97c4a1df98ca7417ae1c (patch) | |
tree | c6b397d82740a26059c02b56d7b3182e5fe08927 /src/gui/panels/updating.c | |
parent | 738daf23eec2c114d456d13e88c51029f891fbc2 (diff) |
Replaced the old symbol panel by a new improved one.
Diffstat (limited to 'src/gui/panels/updating.c')
-rw-r--r-- | src/gui/panels/updating.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gui/panels/updating.c b/src/gui/panels/updating.c index 15955dc..2dec844 100644 --- a/src/gui/panels/updating.c +++ b/src/gui/panels/updating.c @@ -219,6 +219,32 @@ void g_updatable_panel_conclude(GUpdatablePanel *panel, unsigned int uid, void * } +/****************************************************************************** +* * +* Paramètres : panel = panneau ciblé par une mise à jour. * +* uid = identifiant de la phase de traitement. * +* data = données en place à nettoyer avant suppression. * +* * +* Description : Supprime les données dynamiques utilisées à la mise à jour. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_updatable_panel_clean_data(GUpdatablePanel *panel, unsigned int uid, void *data) +{ + GUpdatablePanelIface *iface; /* Interface utilisée */ + + iface = G_UPDATABLE_PANEL_GET_IFACE(panel); + + if (iface->clean != NULL && data != NULL) + iface->clean(panel, uid, data); + +} + + /* ---------------------------------------------------------------------------------- */ /* AIDE POUR LA MISE A JOUR */ @@ -311,6 +337,8 @@ static void g_panel_update_dispose(GPanelUpdate *update) static void g_panel_update_finalize(GPanelUpdate *update) { + g_updatable_panel_clean_data(update->panel, update->uid, update->data); + if (update->data != NULL) free(update->data); |