Revision b4b386fb

View differences:

html/audiobridgetest.js
200 200
										} else if(event === "destroyed") {
201 201
											// The room has been destroyed
202 202
											console.log("The room has been destroyed!");
203
											bootbox.alert(error, function() {
203
											bootbox.alert("The room has been destroyed", function() {
204 204
												window.location.reload();
205 205
											});
206 206
										} else if(event === "event") {
plugins/janus_audiobridge.c
1335 1335
			g_snprintf(error_cause, 512, "Memory error");
1336 1336
			goto error;
1337 1337
		}
1338

  
1339
		g_free(message);
1338 1340
		msg->handle = handle;
1339 1341
		msg->transaction = transaction;
1340 1342
		msg->message = root;
plugins/janus_recordplay.c
429 429

  
430 430
	g_free(msg->transaction);
431 431
	msg->transaction = NULL;
432
	g_free(msg->message);
432
	if(msg->message)
433
		json_decref(msg->message);
433 434
	msg->message = NULL;
434 435
	g_free(msg->sdp_type);
435 436
	msg->sdp_type = NULL;
......
832 833
			g_snprintf(error_cause, 512, "Memory error");
833 834
			goto error;
834 835
		}
836

  
837
		g_free(message);
835 838
		msg->handle = handle;
836 839
		msg->transaction = transaction;
837 840
		msg->message = root;
......
1342 1345
			if(session->arc) {
1343 1346
				janus_recorder_close(session->arc);
1344 1347
				JANUS_LOG(LOG_INFO, "Closed audio recording %s\n", session->arc->filename ? session->arc->filename : "??");
1348
				janus_recorder_free(session->arc);
1345 1349
			}
1346 1350
			session->arc = NULL;
1347 1351
			if(session->vrc) {
1348 1352
				janus_recorder_close(session->vrc);
1349 1353
				JANUS_LOG(LOG_INFO, "Closed video recording %s\n", session->vrc->filename ? session->vrc->filename : "??");
1354
				janus_recorder_free(session->vrc);
1350 1355
			}
1351 1356
			session->vrc = NULL;
1352 1357
			if(session->recorder) {
......
1424 1429
			int res = gateway->push_event(msg->handle, &janus_recordplay_plugin, msg->transaction, event_text, type, sdp);
1425 1430
			JANUS_LOG(LOG_VERB, "  >> Pushing event: %d (took %"SCNu64" us)\n",
1426 1431
				res, janus_get_monotonic_time()-start);
1432
			g_free(sdp);
1427 1433
		}
1428 1434
		g_free(event_text);
1429 1435
		janus_recordplay_message_free(msg);
plugins/janus_streaming.c
1601 1601
			g_snprintf(error_cause, 512, "Memory error");
1602 1602
			goto error;
1603 1603
		}
1604

  
1605
		g_free(message);
1604 1606
		msg->handle = handle;
1605 1607
		msg->transaction = transaction;
1606 1608
		msg->message = root;

Also available in: Unified diff