GNOME Bugzilla – Bug 701323
input-selector: crash when requesting "active" property of pad with no selector
Last modified: 2013-06-04 15:47:13 UTC
Created attachment 245696 [details] [review] Return FALSE for "active" property on input-selector pad if the input selector is deleted It's possible to have a reference to an input-selectors pads after it is deleted. If you do a `g_object_get(pad, "active", &active; NULL)`, it will segfault because the input selector (`sel`) is NULL. This patch returns FALSE if there's no selector.
Created attachment 245701 [details] [review] Slightly more succinct patch I can't decide if this one is better or not. I like how it's less repetitive, but I don't like how it checks `sel` twice. Up to you..
commit 76f0e18f92cfd3444303ec0b025653f3d997b7e0 Author: Brendan Long <self@brendanlong.com> Date: Thu May 30 22:57:49 2013 -0600 input-selector: return FALSE for "active" property if selector is NULL https://bugzilla.gnome.org/show_bug.cgi?id=701323