http://bugs.opencompositing.org/show_bug.cgi?id=762


Roland "Test-tools" Bär <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #382 is|0                           |1
           obsolete|                            |




--- Comment #4 from Roland "Test-tools" Bär <[EMAIL PROTECTED]>  2008-03-13 
09:31:25 ---
Created an attachment (id=413)
 --> (http://bugs.opencompositing.org/attachment.cgi?id=413)
Adds ref_count checks to pixmap NULL checks

Hello,

I was able to reproduce this problem, artificially
g_object_unref(d->buffer_pixmap)
before about src/main.c:1979  
  cr = gdk_cairo_create(GDK_DRAWABLE(d->buffer_pixmap));
We have various NULL check on that pixmap, I believe that at some
g_object_unref
calls, the variable is not set to NULL, so occasionally passing NULL checks
later on.
Therefor introduced macro:
#define IS_VALID(o) (o&&o->parent_instance.ref_count)
which can then be used for a safer NULL check

Please apply the patches,

  Roland "Test-tools" Bär


-- 
Configure bugmail: http://bugs.opencompositing.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Dev mailing list
[email protected]
http://lists.compiz-fusion.org/mailman/listinfo/dev

Reply via email to