Fix #8030 - fix multiple ref issue
[roobuilder] / src / Builder4 / Editor.vala
index e9c403c..6d7d334 100644 (file)
@@ -161,7 +161,7 @@ public class Editor : Object
        
                if (this.searchcontext == null) {
                        return;
-               } 
+               }
                
                Gtk.TextIter beg, st,en;
                bool has_wrapped_around;
@@ -542,6 +542,7 @@ public class Editor : Object
                        // set gobject values
                        this.el.icon_name = "window-close";
                        var child_1 = new Xcls_Image6( _this );
+                       child_1.ref();
                        this.el.child = child_1.el;
 
                        //listeners
@@ -1452,6 +1453,7 @@ public class Editor : Object
 
                        // set gobject values
                        var child_1 = new Xcls_Box19( _this );
+                       child_1.ref();
                        this.el.child = child_1.el;
                }