Displaying 7 results from an estimated 7 matches for "swig_rubyunlinkobject".
Did you mean:
swig_rubyunlinkobjects
2007 Jul 22
0
[1140] trunk/wxruby2/swig/mark_free_impl.i: Remove instance variable marking of deleted Wx Windows because it''s redundant
...r);
- if ( rb_win != Qnil )
-        {
-         rb_ivar_set(rb_win, wx_destroyed_sym, Qtrue);
-         SWIG_RubyUnlinkObjects(ptr);
-         SWIG_RubyRemoveTracking(ptr);
-        }
</del><ins>+ SWIG_RubyUnlinkObjects(ptr);
+ SWIG_RubyRemoveTracking(ptr);
</ins><span cla...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...r);
- if ( rb_win != Qnil )
-        {
-         rb_ivar_set(rb_win, wx_destroyed_sym, Qtrue);
-         SWIG_RubyUnlinkObjects(ptr);
-         SWIG_RubyRemoveTracking(ptr);
-        }
-}
-
-// Carries out marking of Sizer objects belonging to a Wx::Window. Note
-// that this isn''t done...
2007 Apr 13
0
[959] branches/wxruby2/wxwidgets_282/swig/wx.i: Ensure GC_NEVER handler at least unlinks objects; update to new API for
...e;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void GcFreefunc(void *)
</del><ins>+void GcFreefunc(void *ptr)
</ins><span class="cx"> {
</span><del>-
</del><ins>+ SWIG_RubyUnlinkObjects(ptr);
+ SWIG_RubyRemoveTracking(ptr);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ///////////////////////////////////////////////////
</span><span class="lines">@@ -74,7 +75,7...
2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
...;nbsp   {
</span><span class="cx">          rb_ivar_set(rb_win, wx_destroyed_sym, Qtrue);
</span><ins>+         SWIG_RubyUnlinkObjects(ptr);
+         SWIG_RubyRemoveTracking(ptr);
</ins><span class="cx">         }
</span><span class="cx"> }
</span><s...
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...mp;nbsp  wxObject* wx_obj = event.GetEventObject();
+        // Would be neater - but can''t do it this way b/c of destruction sequence
+        // SWIG_RubyUnlinkObjects((void *)wx_obj);
+
+        VALUE rb_obj = SWIG_RubyInstanceFor((void *)wx_obj);
+        rb_iv_set(rb_obj, "@__wx_destroyed__", Qtrue);
+  &...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...return rb_hash_aref(GcRubyHash, INT2NUM((long)ptr));
-}
-
-void GcMarkDeleted(void *ptr)
-{
- DeletedHash[ptr] = true;
-}
-
-bool GcIsDeleted(void *ptr)
-{
- if (DeletedHash.find(ptr) == DeletedHash.end())
- return false;
- else return true;
-}
-
-void GcFreefunc(void *ptr)
-{
- SWIG_RubyUnlinkObjects(ptr);
</del><span class="cx"> SWIG_RubyRemoveTracking(ptr);
</span><span class="cx"> }
</span><del>-
-///////////////////////////////////////////////////
-extern "C" void Init_wxRubyEventTypes();
-
</del><span class="...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...pwxObject* wx_obj = event.GetEventObject();
</span><del>-        // Would be neater - but can''t do it this way b/c of destruction sequence
-        // SWIG_RubyUnlinkObjects((void *)wx_obj);
-
-        VALUE rb_obj = SWIG_RubyInstanceFor((void *)wx_obj);
-        rb_iv_set(rb_obj, "@__wx_destroyed__", Qtrue);
</del><ins>...