summaryrefslogtreecommitdiff
path: root/saedit/main.c
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2011-10-20 09:18:58 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2011-10-20 09:18:58 +0400
commit97911ac99f187a7c2c3eb4324b04cbb39b8e9bee (patch)
tree65919bfae696bba7eb6a6d7ef3fc67d58d961f59 /saedit/main.c
parent95213c9cdb04d1791d55c231331467edce9ab722 (diff)
downloadevol-tools-97911ac99f187a7c2c3eb4324b04cbb39b8e9bee.tar.gz
evol-tools-97911ac99f187a7c2c3eb4324b04cbb39b8e9bee.tar.bz2
evol-tools-97911ac99f187a7c2c3eb4324b04cbb39b8e9bee.tar.xz
evol-tools-97911ac99f187a7c2c3eb4324b04cbb39b8e9bee.zip
Correct freeing info after opening new file or creating new
Diffstat (limited to 'saedit/main.c')
-rw-r--r--saedit/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/saedit/main.c b/saedit/main.c
index 8385f60..bf5b5e4 100644
--- a/saedit/main.c
+++ b/saedit/main.c
@@ -110,7 +110,7 @@ void open_xml_file(GtkButton *button) {
gtk_file_chooser_unselect_all(GTK_FILE_CHOOSER(xml_file_chooser_button));
}
- free_lists(gen_sae_info);
+ free_current_info();
}
void save_to_xml_file(gchar *filename) {
@@ -158,6 +158,11 @@ void free_lists(SAEInfo *sae_info) {
free_animations(sae_info);
}
+void free_current_info() {
+ free_lists(gen_sae_info);
+ player = NULL;
+}
+
//Callbacks
void data_folder_set_callback(GtkFileChooserButton *widget, gpointer data) {