chiark / gitweb /
Fix two memory leaks in GTK frontend.
authorJonas Kölker <jonaskoelker@yahoo.com>
Tue, 6 Oct 2015 23:08:11 +0000 (01:08 +0200)
committerSimon Tatham <anakin@pobox.com>
Sun, 18 Oct 2015 10:02:12 +0000 (11:02 +0100)
commit96b6f55ec834471414576f2ea761f0a29bd47cdc
treef0086ff0005810d101d995abea05dfab6ed1ff48
parent2fb2774fcdd207a092b065faf10f081294c88f90
Fix two memory leaks in GTK frontend.

 - The file selector for loading and saving gets a g_free().
 - The handling of saving (menu_save_event) gets an sfree().
 - It's also slightly restructured to prevent future errors.
 - menu_load_event was already structured to prevent this error.
 - The OLD_FILESEL code seems to not need a g_free().
gtk.c