]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Avoid unnecessary copying operations in FileStream.read_line()
authorZhou Qiankang <wszqkzqk@qq.com>
Mon, 1 Apr 2024 09:02:42 +0000 (17:02 +0800)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 15 Apr 2024 08:29:10 +0000 (10:29 +0200)
vapi/glib-2.0.vapi

index 8882177cc1a2c02e17e2dd8c0bf4eb22f4e21607..cb332dafc0aba9b37f62217e157472f6b02d66a6 100644 (file)
@@ -4086,7 +4086,7 @@ namespace GLib {
                        if (ret == null) {
                                return null;
                        } else {
-                               return ((!)(ret)).str;
+                               return (owned) ((!)(ret)).str;
                        }
                }
        }