瀏覽代碼

dialog: release remote profile lock on remove operation

Daniel-Constantin Mierla 10 年之前
父節點
當前提交
04bd28fffd
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/dialog/dlg_profile.c

+ 1 - 0
modules/dialog/dlg_profile.c

@@ -394,6 +394,7 @@ int remove_profile(dlg_profile_table_t *profile, str *value, str *puid)
 				lh->next = lh->prev = NULL;
 				if(lh->linker) shm_free(lh->linker);
 				p_entry->content--;
+				lock_release(&profile->lock );
 				return 1;
 			}
 			lh = lh->next;