[gnome-boxes] Fix crash when passing media on command line



commit 6d3253a880ddab9032b3da30c27172514a86118e
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Feb 19 09:59:22 2013 +0100

    Fix crash when passing media on command line
    
    We need the call_when_ready delegate to be "owned" or we don't get
    a ref to the continuation (so it'll be freed when we later call it).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694142

 src/app.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 4cba1ef..0fed3af 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -191,7 +191,7 @@ private class Boxes.App: Boxes.UI {
     }
 
     public delegate void CallReadyFunc ();
-    public void call_when_ready (CallReadyFunc func) {
+    public void call_when_ready (owned CallReadyFunc func) {
         if (is_ready)
             func ();
         ready.connect (() => {


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