fix: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

This commit is contained in:
Mario Hüttel 2018-05-24 00:36:55 +02:00
parent 1ffe677804
commit 37a561115a

3
main.c
View File

@ -196,9 +196,10 @@ static void on_convert_clicked(gpointer button, gpointer user)
gtk_widget_destroy(dialog); gtk_widget_destroy(dialog);
render_cell_to_code(cell_to_render, layer_list, tex_file); render_cell_to_code(cell_to_render, layer_list, tex_file);
fclose(tex_file); fclose(tex_file);
} else {
gtk_widget_destroy(dialog);
} }
gtk_widget_destroy(dialog);
g_list_free_full(layer_list, (GDestroyNotify)delete_layer_info_struct); g_list_free_full(layer_list, (GDestroyNotify)delete_layer_info_struct);
} }