]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
x11: Use XCloseDisplay free function for Display
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 7 Apr 2011 20:00:43 +0000 (22:00 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 7 Apr 2011 20:02:43 +0000 (22:02 +0200)
Fixes bug 625662.

vapi/x11.vapi

index a8811435773eda1d365e6eaf4f7310fdb209301c..32cc79cdf2f031a88f7c848b87762cb925664fb7 100644 (file)
@@ -28,7 +28,7 @@ namespace X {
        public Status init_threads ();
 
        [Compact]
-       [CCode (cname = "Display", ref_function = "", unref_function = "")]
+       [CCode (cname = "Display", free_function = "XCloseDisplay")]
        public class Display {
                [CCode (cname = "XOpenDisplay")]
                public Display (string? name = null);