free l->data before removing l
authorVincent Torri <vincent.torri@gmail.com>
Mon, 19 Jan 2009 21:44:31 +0000 (21:44 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Mon, 19 Jan 2009 21:44:31 +0000 (21:44 +0000)
SVN revision: 38655

src/modules/conf_colors/e_int_config_color_classes.c

index b756bf4..afd1bd7 100644 (file)
@@ -187,8 +187,8 @@ _fill_data_hash(E_Config_Dialog_Data *cfdata, const CFColor_Hash *cfhash)
               {
                  if (!strncmp(cfhash[i].key, l->data, strlen(cfhash[i].key)))
                    {
-                      color_classes = eina_list_remove_list(color_classes, l);
                       E_FREE(l->data);
+                      color_classes = eina_list_remove_list(color_classes, l);
                    }
               }