Просмотр исходного кода

dialog: release remote profile lock on remove operation

Daniel-Constantin Mierla 10 лет назад
Родитель
Сommit
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;