Previous 199869 Revisions Next

r29202 Wednesday 2nd April, 2014 at 20:51:41 UTC by Oliver Stöneberg
fixed memory leak when using .rpk files with ti99 (nw)
[src/mess/machine/ti99]gromport.c

trunk/src/mess/machine/ti99/gromport.c
r29201r29202
23122312   zip_file* zipfile;
23132313
23142314   char *layout_text = NULL;
2315   xml_data_node *layout_xml;
2315   xml_data_node *layout_xml = NULL;
23162316   xml_data_node *romset_node;
23172317   xml_data_node *configuration_node;
23182318   xml_data_node *resources_node;
r29201r29202
24282428   catch (rpk_exception &exp)
24292429   {
24302430      newrpk->close();
2431      if (layout_xml != NULL)      xml_file_free(layout_xml);
24312432      if (zipfile != NULL)        zip_file_close(zipfile);
24322433      if (layout_text != NULL)    global_free_array(layout_text);
24332434
r29201r29202
24352436      throw exp;
24362437   }
24372438
2439   if (layout_xml != NULL)      xml_file_free(layout_xml);
24382440   if (zipfile != NULL)        zip_file_close(zipfile);
24392441   if (layout_text != NULL)    global_free_array(layout_text);
24402442

Previous 199869 Revisions Next


© 1997-2024 The MAME Team