[grisbi-devel] [Grisbi] Nouvelle version 1.0.1 de grisbi

Nicolas LAURENT nl at haplo.info
Sun Aug 28 16:19:52 CEST 2016


Bonjour,

j’ai pu isoler le bug: la fonction main_window_destroy_event() est appelée 2 fois lors d’un cmd-Q ou avec l’utilisation du menu. S’en suivent des double free(). 

Je propose de modifier cette fonction pour ajouter un test :

static void main_window_destroy_event ( GObject* obj, gpointer data)
{
    if (run.window) { /* to prevent double destroy events on MacOS */
        free_variables();
        run.window = NULL;

        gtk_main_quit();
    }
}

Avec cette modif, ma version tourne au poil !

A+




> Le 28 août 2016 à 15:13, Julien Élie <iulius at nom-de-mon-site.com.invalid> a écrit :
> 
> Bonjour Nicolas,
> 
>> Par contre sur la 1.0.1 que je viens de compiler sur Mac, j’ai le comportement suivant :
>> 
>> * Clic sur la fermeture de fenêtre -> sortie sans erreur
>> * menu Grisbi / cmd-Q —> Erreur :
>> 
>> Grisbi(31654,0x7fff7310a000) malloc: *** error for object 0x7fd9858db950: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
> 
> Bizarre. Ce problème avait pourtant été corrigé par Ludovic :
> https://github.com/grisbi/grisbi/commit/27144b666f118d33bae3cef80cc2d2e52abfce98
> 
> Le patch n'est plus présent dans la 1.0.1 ?
> 
> -- 
> Julien
> _______________________________________________
> devel mailing list
> devel at listes.grisbi.org
> http://listes.grisbi.org/mailman/listinfo/devel



More information about the devel mailing list