X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fddfile.c;h=e32dff3ee4623fb7bacfdc715341705cc29eb91f;hb=159a3cb3b1dcf0b3d1cb3a194a181d4e6aea57a4;hp=15e705d66d39523630e7aee229fd05b10879b997;hpb=5ca9c2e03cfdd8c5831c9b62187c7cec8fcdbfda;p=chaz%2Fopenbox diff --git a/obt/ddfile.c b/obt/ddfile.c index 15e705d6..e32dff3e 100644 --- a/obt/ddfile.c +++ b/obt/ddfile.c @@ -94,9 +94,9 @@ static void parse_error(const gchar *m, const ObtDDParse *const parse, gboolean *error) { if (!parse->filename) - g_warning("%s at line %lu of input\n", m, parse->lineno); + g_warning("%s at line %lu of input", m, parse->lineno); else - g_warning("%s at line %lu of file %s\n", + g_warning("%s at line %lu of file %s", m, parse->lineno, parse->filename); if (error) *error = TRUE; } @@ -364,6 +364,7 @@ ObtDDFile* obt_ddfile_new_from_file(const gchar *name, GSList *paths) parse.lineno = 1; if (!parse_file(dd, f, &parse)) f = NULL; } + g_free(path); } if (!f) { obt_ddfile_unref(dd);