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

[tor-commits] [sandboxed-tor-browser/master] Fix compilation with Go 1.8.



commit 35fb3e0cebd73c9a93bee68e1a12a59685c49c41
Author: Yawning Angel <yawning@xxxxxxxxxxxxxxx>
Date:   Thu Feb 23 20:28:19 2017 +0000

    Fix compilation with Go 1.8.
---
 ChangeLog                                                  | 1 +
 src/cmd/sandboxed-tor-browser/internal/ui/notify/notify.go | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 9557a1d..16374c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
 Changes in version 0.0.4 - UNRELEASED:
+ * Fix compilation with Go 1.8.
 
 Changes in version 0.0.3 - 2017-01-18:
  * Bug 21057: Change the metadata URL(s) for the stable bundle.
diff --git a/src/cmd/sandboxed-tor-browser/internal/ui/notify/notify.go b/src/cmd/sandboxed-tor-browser/internal/ui/notify/notify.go
index 50f156c..6ca2a85 100644
--- a/src/cmd/sandboxed-tor-browser/internal/ui/notify/notify.go
+++ b/src/cmd/sandboxed-tor-browser/internal/ui/notify/notify.go
@@ -300,7 +300,7 @@ func New(summary, body string, icon *gdk.Pixbuf) *Notification {
 
 	runtime.SetFinalizer(n, func(n *Notification) {
 		delete(callbackChans, unsafe.Pointer(n.n))
-		C.g_object_unref(n.n)
+		C.g_object_unref(C.gpointer(n.n))
 	})
 	n.SetImage(icon)
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits