gfile: Plug memory leak in g_file_make_directory_with_parents()
authorColin Walters <walters@verbum.org>
Fri, 4 May 2012 14:03:12 +0000 (10:03 -0400)
committerColin Walters <walters@verbum.org>
Tue, 15 May 2012 15:07:33 +0000 (11:07 -0400)
commit5a57144d5749efaf3b5e752db9b041597d4b062f
tree716ea428cbe6a4e9e2e96955cf9fbb9cf51f2e4f
parentd5d3c7b3a4830a12e155e949345cfc9109236786
gfile: Plug memory leak in g_file_make_directory_with_parents()

The logic here is pretty twisted, but basically we were leaking a ref
for each non-existent parent.  The clearest way to fix this was to
move to more explicit refcounting logic; when a variable is pointing
to an object, it holds a ref.

https://bugzilla.gnome.org/show_bug.cgi?id=675446
gio/gfile.c