free(buf);
free(mixbuf);
+ free(gain);
track_list_ready = true;
} /* end lock */
VideoTimeLine::find_xjadeo () {
std::string xjadeo_file_path;
if (getenv("XJREMOTE")) {
- _xjadeo_bin = strdup(getenv("XJREMOTE")); // XXX TODO: free it?!
+ _xjadeo_bin = getenv("XJREMOTE");
} else if (find_file_in_search_path (Searchpath(Glib::getenv("PATH")), X_("xjremote"), xjadeo_file_path)) {
_xjadeo_bin = xjadeo_file_path;
}
{
vector<string> tags;
#ifdef HAVE_LRDF
+ char * uri = strdup(Glib::filename_to_uri(member).c_str());
lrdf_statement pattern;
- pattern.subject = strdup(Glib::filename_to_uri(member).c_str());
+ pattern.subject = uri;
pattern.predicate = const_cast<char*>(TAG);
pattern.object = 0;
pattern.object_type = lrdf_literal;
lrdf_statement* matches = lrdf_matches (&pattern);
- free (pattern.subject);
lrdf_statement* current = matches;
while (current != 0) {
lrdf_free_statements (matches);
sort (tags.begin(), tags.end());
+ free (uri);
#endif
return tags;
}
void* vstfx_load_vst_library(const char* path)
{
void* dll;
- char* full_path;
+ char* full_path = NULL;
char* envdup;
char* lxvst_path;
size_t len1;
vstfx_error ("\"%s\"", lxvst_path);
len1 = strlen(lxvst_path);
+ if (full_path) free(full_path);
full_path = (char*)malloc(len1 + 1 + len2 + 1);
memcpy(full_path, lxvst_path, len1);
full_path[len1] = '/';
}
/*Free the path*/
-
+ if (full_path) free(full_path);
free(envdup);
return dll;
while (true) {
_sem.wait();
if (_exit) {
+ if (buf) free(buf);
return;
}
while (!verify_message_completeness(_requests)) {
Glib::usleep(2000);
if (_exit) {
+ if (buf) free(buf);
return;
}
}