another try to free layout at exit
authorVladimir Nadvornik <nadvornik@suse.cz>
Mon, 16 Jun 2008 18:37:35 +0000 (18:37 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Mon, 16 Jun 2008 18:37:35 +0000 (18:37 +0000)
src/main.c

index 0c679ea..fd9ed90 100644 (file)
@@ -569,6 +569,7 @@ static void exit_program_final(void)
 {
        gchar *path;
        gchar *pathl;
+       LayoutWindow *lw = NULL;
 
        remote_close(remote_connection);
 
@@ -584,6 +585,11 @@ static void exit_program_final(void)
        g_free(pathl);
        g_free(path);
 
+       if (layout_valid(&lw))
+               {
+               layout_free(lw);
+               }
+
        gtk_main_quit();
 }