fix memory leaks in g_file_new_for_* binding, fixes bug 509884
authorJuerg Billeter <j@bitron.ch>
Fri, 18 Jan 2008 20:24:48 +0000 (20:24 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 18 Jan 2008 20:24:48 +0000 (20:24 +0000)
2008-01-18  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gio-2.0/: fix memory leaks in g_file_new_for_* binding,
  fixes bug 509884

* vapi/gio-2.0.vapi: regenerated

svn path=/trunk/; revision=857

ChangeLog
vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index 99d7066..931af58 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-01-18  Jürg Billeter  <j@bitron.ch>
 
+       * vapi/packages/gio-2.0/: fix memory leaks in g_file_new_for_* binding,
+         fixes bug 509884
+
+       * vapi/gio-2.0.vapi: regenerated
+
+2008-01-18  Jürg Billeter  <j@bitron.ch>
+
        * vala/valainterfacewriter.vala: write [NoArrayLength] for fields
 
        * vapigen/valagidlparser.vala: set no_array_length for fields
index 3342a15..76857db 100644 (file)
@@ -645,9 +645,9 @@ namespace GLib {
                public abstract void mount_mountable (GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
                public abstract weak GLib.File mount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
                public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data) throws GLib.Error;
-               public static weak GLib.File new_for_commandline_arg (string arg);
-               public static weak GLib.File new_for_path (string path);
-               public static weak GLib.File new_for_uri (string uri);
+               public static GLib.File new_for_commandline_arg (string arg);
+               public static GLib.File new_for_path (string path);
+               public static GLib.File new_for_uri (string uri);
                public static weak GLib.File parse_name (string parse_name);
                public abstract weak GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
                public abstract weak GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
index 19adae3..eb4376d 100644 (file)
@@ -1,6 +1,9 @@
 GLib cprefix="G" lower_case_cprefix="g_" cheader_filename="gio/gio.h"
 g_app_info_launch.envp is_array="1"
 g_app_info_launch_uris.envp is_array="1"
+g_file_new_for_commandline_arg transfer_ownership="1"
+g_file_new_for_path transfer_ownership="1"
+g_file_new_for_uri transfer_ownership="1"
 GMountOperation::reply has_emitter="1"
 g_themed_icon_new_from_names.iconnames is_array="1"