X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/cd54ffa8f72331531d2fb4624c1259bbb023ce38..02e27a9ec780fe569744b52463eabdd83c8cf68f:/gui/gui.c?ds=inline diff --git a/gui/gui.c b/gui/gui.c index 06aee1c..fec8758 100644 --- a/gui/gui.c +++ b/gui/gui.c @@ -6,6 +6,7 @@ #include #include "form.h" +#include "articulos.h" static void finish(int sig); @@ -14,6 +15,9 @@ int main(int argc, char *argv[]) /* initialize your non-curses data structures here */ WINDOW *mainwin; t_Form *form; + t_LstArticulos *articulos; + + articulos = art_cargar(argv[1]); /* Inicio Curses */ signal(SIGINT, finish); /* arrange interrupts to terminate */ @@ -70,6 +74,7 @@ int main(int argc, char *argv[]) /* Libero el formulario */ form_destruir(form); + art_liberar(articulos); MD_Listar(); return 0;