Fix potential crash in resource_expire()
authorSven Neumann <s.neumann@raumfeld.com>
Mon, 15 Nov 2010 08:58:40 +0000 (09:58 +0100)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 18 Nov 2010 13:02:45 +0000 (15:02 +0200)
commitb834cfca29cbe1945938178581eece67d51d030b
tree9ebd8c2eb9064ed5e92ee74e80955690f8c2c10a
parent5e293215765ff1eb9cd3d82966559a5335018033
Fix potential crash in resource_expire()

GSSDPResourceBrowser emits "resource-unavailable" before it has removed
the resource from its cache. Now if the application changes the cache
in response to this signal emission the code will crash.

Fix this potential crash by emitting the signal after the resource
has been removed from the cache.
libgssdp/gssdp-resource-browser.c