Revision
17045
Author
anthm
Date
2010-03-18 16:31:31 -0500 (Thu, 18 Mar 2010)

Log Message

declinatio mortuus obfirmo!

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (17044 => 17045)


--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2010-03-18 19:15:52 UTC (rev 17044)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2010-03-18 21:31:31 UTC (rev 17045)
@@ -3972,6 +3972,7 @@
 		update_mwi(profile, id, domain, "inbox");
 	
 		stream->write_function(stream, "%s", "+OK\n");
+		profile_rwunlock(profile);
 	} else {
 		stream->write_function(stream, "%s", "-ERR can't find user or profile.\n");
 	}
@@ -4052,6 +4053,8 @@
 		update_mwi(profile, id, domain, "inbox");
 	
 		stream->write_function(stream, "%s", "+OK\n");
+
+		profile_rwunlock(profile);
 	} else {
 		stream->write_function(stream, "%s", "-ERR can't find user or profile.\n");
 	}
@@ -4134,6 +4137,7 @@
 			stream->write_function(stream, "</voicemail>\n");
 		}
 
+		profile_rwunlock(profile);
 	} else {
 		stream->write_function(stream, "%s", "-ERR can't find user or profile.\n");
 	}