Fixed memory leaks. And fixes for Web-camera and IP-camera.

This commit is contained in:
AlexeyAB
2018-05-04 23:52:05 +03:00
parent 4232ace376
commit 89354d0a0c
9 changed files with 109 additions and 44 deletions

View File

@ -1,3 +1,8 @@
#ifdef _DEBUG
#include <stdlib.h>
#include <crtdbg.h>
#endif
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
@ -350,6 +355,10 @@ void visualize(char *cfgfile, char *weightfile)
int main(int argc, char **argv)
{
#ifdef _DEBUG
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
//test_resize("data/bad.jpg");
//test_box();
//test_convolutional_layer();