[vala] x11: Use XCloseDisplay free function for Display



commit b151d488d95f14f0c36181e9c5eae61df9283dde
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Apr 7 22:00:43 2011 +0200

    x11: Use XCloseDisplay free function for Display
    
    Fixes bug 625662.

 vapi/x11.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index a881143..32cc79c 100644
--- a/vapi/x11.vapi
+++ b/vapi/x11.vapi
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]