From d390759fb46926cc95a95635418564b53f5bf701 Mon Sep 17 00:00:00 2001 From: Vasily_Makarov Date: Sat, 11 Jun 2011 10:56:20 +0400 Subject: saedit: Add forgotten sprite_info destroying --- saedit/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/saedit/main.c b/saedit/main.c index 5c23313..1f43b3e 100644 --- a/saedit/main.c +++ b/saedit/main.c @@ -114,6 +114,7 @@ void free_animations() { gtk_list_store_clear(GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(animations_combo_box)))); kill_timeout(running_animation); running_animation = 0; + current_sprite = sprite_info_new(-1, 0, 0); set_sprite_by_index(0); } @@ -434,6 +435,9 @@ void load_options() { } void parse_xml_buffer(GtkWidget *button, GtkSourceBuffer *buffer) { + free_imagesets(); + free_actions(); + free_animations(); load_options(); GtkTextIter beg, end; -- cgit v1.2.3-70-g09d2