{"action":"created","issue":{"url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/22","labels_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/22/comments","events_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/22/events","html_url":"https://github.com/TheImagingSource/tiscamera/issues/22","id":51698092,"number":22,"title":"Release the memory in arvcameratest.c","user":{"login":"hanabata","id":8624602,"avatar_url":"https://avatars.githubusercontent.com/u/8624602?v=3","gravatar_id":"","url":"https://api.github.com/users/hanabata","html_url":"https://github.com/hanabata","followers_url":"https://api.github.com/users/hanabata/followers","following_url":"https://api.github.com/users/hanabata/following{/other_user}","gists_url":"https://api.github.com/users/hanabata/gists{/gist_id}","starred_url":"https://api.github.com/users/hanabata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanabata/subscriptions","organizations_url":"https://api.github.com/users/hanabata/orgs","repos_url":"https://api.github.com/users/hanabata/repos","events_url":"https://api.github.com/users/hanabata/events{/privacy}","received_events_url":"https://api.github.com/users/hanabata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TheImagingSource/tiscamera/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"TIS-Edgar","id":6525011,"avatar_url":"https://avatars.githubusercontent.com/u/6525011?v=3","gravatar_id":"","url":"https://api.github.com/users/TIS-Edgar","html_url":"https://github.com/TIS-Edgar","followers_url":"https://api.github.com/users/TIS-Edgar/followers","following_url":"https://api.github.com/users/TIS-Edgar/following{/other_user}","gists_url":"https://api.github.com/users/TIS-Edgar/gists{/gist_id}","starred_url":"https://api.github.com/users/TIS-Edgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TIS-Edgar/subscriptions","organizations_url":"https://api.github.com/users/TIS-Edgar/orgs","repos_url":"https://api.github.com/users/TIS-Edgar/repos","events_url":"https://api.github.com/users/TIS-Edgar/events{/privacy}","received_events_url":"https://api.github.com/users/TIS-Edgar/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2014-12-11T15:16:30Z","updated_at":"2015-01-27T09:06:47Z","closed_at":"2015-01-27T09:06:47Z","body":"Hi,\r\n\r\nI have a question about the release of the memory in arvcameratest.c of ARAVIS 0_3_3. I modified the program to handle several cameras with one program alternately. This program makes a loop that one camera takes a snapshot with a software trigger and the analysis of the image is done and then it goes to the next camera and do the same procedure. As a start point, I ran the program with only a single camera. Then I found the short of memory after some loops. I inserted system(\"free\") to check how the amount of free memory is decreasing. I found that setting the callback function written in every loop might be suspicious. \r\nl.261 g_signal_connect (stream, \"new-buffer\", G_CALLBACK (new_buffer_cb), &data);\r\n\r\nI guess that unset of the callback function or releasing the memory of \"data\" is necessary to avoid the problem. If you know anything, could you teach me how to do that?"},"comment":{"url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/comments/71612627","html_url":"https://github.com/TheImagingSource/tiscamera/issues/22#issuecomment-71612627","issue_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/22","id":71612627,"user":{"login":"TIS-Stefan","id":4242120,"avatar_url":"https://avatars.githubusercontent.com/u/4242120?v=3","gravatar_id":"","url":"https://api.github.com/users/TIS-Stefan","html_url":"https://github.com/TIS-Stefan","followers_url":"https://api.github.com/users/TIS-Stefan/followers","following_url":"https://api.github.com/users/TIS-Stefan/following{/other_user}","gists_url":"https://api.github.com/users/TIS-Stefan/gists{/gist_id}","starred_url":"https://api.github.com/users/TIS-Stefan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TIS-Stefan/subscriptions","organizations_url":"https://api.github.com/users/TIS-Stefan/orgs","repos_url":"https://api.github.com/users/TIS-Stefan/repos","events_url":"https://api.github.com/users/TIS-Stefan/events{/privacy}","received_events_url":"https://api.github.com/users/TIS-Stefan/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T09:06:47Z","updated_at":"2015-01-27T09:06:47Z","body":"Closed since there are no more answers."}}