Skip to content

Instantly share code, notes, and snippets.

@pcapriotti
Created July 11, 2010 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcapriotti/471684 to your computer and use it in GitHub Desktop.
Save pcapriotti/471684 to your computer and use it in GitHub Desktop.
Index: ruby/qtruby/src/handlers.cpp
===================================================================
--- ruby/qtruby/src/handlers.cpp (revision 1148646)
+++ ruby/qtruby/src/handlers.cpp (working copy)
@@ -333,6 +333,14 @@
if (item->parentItem() == 0) {
mark_qgraphicsitem_children(item);
}
+ if (QGraphicsEffect* effect = item->graphicsEffect()) {
+ obj = getPointerObject(effect);
+ if (obj != Qnil) {
+ if (do_debug & qtdb_gc)
+ qWarning("Marking (%s*)%p -> %p", "QGraphicsEffect", effect, (void*)obj);
+ rb_gc_mark(obj);
+ }
+ }
}
if (o->smoke->isDerivedFrom(className, "QGraphicsScene")) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment