From: Dmitry Vagin Date: Tue, 26 Jun 2012 21:45:20 +0000 (-0700) Subject: libpq: fix freeing of Postgres.Notify X-Git-Tag: 0.17.3~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57ffa01656e712679adfaf584ff4523f0b9d6a70;p=thirdparty%2Fvala.git libpq: fix freeing of Postgres.Notify Fixes bug 678910. --- diff --git a/vapi/libpq.vapi b/vapi/libpq.vapi index e47ca0758..0e4be3e9b 100644 --- a/vapi/libpq.vapi +++ b/vapi/libpq.vapi @@ -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")]