]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libpq: fix freeing of Postgres.Notify
authorDmitry Vagin <dmitry2004@yandex.ru>
Tue, 26 Jun 2012 21:45:20 +0000 (14:45 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Tue, 26 Jun 2012 21:45:20 +0000 (14:45 -0700)
Fixes bug 678910.

vapi/libpq.vapi

index e47ca07587904899388eb581fb30d87de818fd38..0e4be3e9b18b64b2230e9649908b170fad7084e4 100644 (file)
@@ -89,11 +89,14 @@ namespace Postgres {
                SOURCE_FUNCTION
        }
 
-       [CCode (cname = "PGnotify")]
-       public struct Notify {
+       [Compact]
+       [CCode (cname = "PGnotify", free_function = "PQfreemem")]
+       public class Notify {
                public string relname;
                public int    be_pid;
                public string extra;
+
+               private Notify ();
        }
 
        [CCode (cname = "PQnoticeReceiver")]