~vcs-imports/viking/trunk

« back to all changes in this revision

Viewing changes to src/gpx.c

  • Committer: guyou
  • Date: 2009-01-22 20:42:34 UTC
  • Revision ID: vcs-imports@canonical.com-20090122204234-szaiqxi363qr1qux
Fix some memory leaks.

This were found a by mixture of valgrind use and code review.

Submitted by Rob Norris

Show diffs side-by-side

added added

removed removed

Lines of Context:
421
421
    XML_Parse(parser, buf, len, done);
422
422
  }
423
423
 
 
424
  XML_ParserFree (parser);
424
425
  g_string_free ( xpath, TRUE );
425
426
  g_string_free ( c_cdata, TRUE );
426
427
}