permissions: Fix refcounting when adding/removing roles
authorSebastian Rasmussen <sebras@hotmail.com>
Sat, 19 Oct 2013 15:39:35 +0000 (17:39 +0200)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 12 Nov 2013 08:54:04 +0000 (09:54 +0100)
commit4036f210af2ae6081b5c79971a9068ab43421b7a
tree613aa548c75ddeee993633a555665bb201d39a2a
parenteee8b0db8835716e81e9c42c1f9ee58dbb04e2f1
permissions: Fix refcounting when adding/removing roles

Previously a role that was removed was unreffed twice, and when
replacing an existing role the replaced role was freed while still being
referenced. Both bugs are now fixed.

See https://bugzilla.gnome.org/show_bug.cgi?id=710202
gst/rtsp-server/rtsp-permissions.c