Skip to content

Commit

Permalink
Fixed a few leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Oct 12, 2016
1 parent 9a872e8 commit 749e08e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/janus_audiobridge.c
Expand Up @@ -3166,6 +3166,7 @@ static void *janus_audiobridge_mixer_thread(void *data) {
fclose(audiobridge->recording);
}
}
g_free(rtpbuffer);
JANUS_LOG(LOG_VERB, "Leaving mixer thread for room %"SCNu64" (%s)...\n", audiobridge->room_id, audiobridge->room_name);

/* We'll let the watchdog worry about free resources */
Expand Down
3 changes: 3 additions & 0 deletions plugins/janus_textroom.c
Expand Up @@ -502,6 +502,9 @@ void janus_textroom_destroy(void) {
janus_mutex_lock(&sessions_mutex);
g_hash_table_destroy(sessions);
janus_mutex_unlock(&sessions_mutex);
janus_mutex_lock(&rooms_mutex);
g_hash_table_destroy(rooms);
janus_mutex_unlock(&rooms_mutex);
g_async_queue_unref(messages);
messages = NULL;
sessions = NULL;
Expand Down
1 change: 0 additions & 1 deletion plugins/janus_videoroom.c
Expand Up @@ -920,7 +920,6 @@ void janus_videoroom_destroy(void) {
janus_mutex_unlock(&sessions_mutex);

janus_mutex_lock(&rooms_mutex);

g_hash_table_destroy(rooms);
rooms = NULL;
janus_mutex_unlock(&rooms_mutex);
Expand Down
1 change: 1 addition & 0 deletions sdp-utils.c
Expand Up @@ -52,6 +52,7 @@ void janus_sdp_free(janus_sdp *sdp) {
janus_sdp_attribute_destroy(a);
temp2 = temp2->next;
}
g_list_free(m->attributes);
g_free(m);
temp = temp->next;
}
Expand Down

0 comments on commit 749e08e

Please sign in to comment.