GNOME Bugzilla – Bug 570752
Deregistering an application leaves a dangling pointer
Last modified: 2009-02-06 05:50:56 UTC
Please describe the problem: There is a global variable, called registry, which holds a reference to the registry. It appears that deregister_application is intended to set this variable to NULL, but this does not happen because the function defines a local variable called registry. This can result in a crash because the global variable now points to unallocated memory. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 128075 [details] [review] Proposed patch. Simply removing the local variable might also work, although we might need a null check if we were to do that instead.