482:5e96648f416f | 483:138b7c5c3c59 |
---|---|
42 File* f = openLDrawFile ("LDConfig.ldr", false); | 42 File* f = openLDrawFile ("LDConfig.ldr", false); |
43 | 43 |
44 if (!f) { | 44 if (!f) { |
45 critical (fmt (QObject::tr ("Unable to open LDConfig.ldr for parsing! (%1)"), | 45 critical (fmt (QObject::tr ("Unable to open LDConfig.ldr for parsing! (%1)"), |
46 strerror (errno))); | 46 strerror (errno))); |
47 delete f; | |
48 return; | 47 return; |
49 } | 48 } |
50 | 49 |
51 // Read in the lines | 50 // Read in the lines |
52 for (str line : *f) { | 51 for (str line : *f) { |