]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
declinatio mortuus obfirmo!
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Mar 2010 21:31:31 +0000 (21:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Mar 2010 21:31:31 +0000 (21:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17045 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index cd859f1ed52c6b335e868ac6bcebd1d2a46fefe1..918cdd690e0e28d4de4d5dd7e2f7c2a43fe2d9d8 100644 (file)
@@ -3972,6 +3972,7 @@ SWITCH_STANDARD_API(voicemail_delete_api_function)
                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 @@ SWITCH_STANDARD_API(voicemail_read_api_function)
                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 @@ SWITCH_STANDARD_API(voicemail_list_api_function)
                        stream->write_function(stream, "</voicemail>\n");
                }
 
+               profile_rwunlock(profile);
        } else {
                stream->write_function(stream, "%s", "-ERR can't find user or profile.\n");
        }