eve: Fix passing freed uri when sending through D-Bus

Free the uri only after returning from mainloop. Otherwise we when the
request_name callback returns uri will already be freed.



SVN revision: 78127
This commit is contained in:
Lucas De Marchi 2012-10-17 21:10:00 +00:00
parent 79f55a424b
commit 9baebd55e5
1 changed files with 2 additions and 1 deletions

View File

@ -894,9 +894,10 @@ elm_main(int argc, char **argv)
goto end;
}
elm_run();
if (tmp_uri) free(tmp_uri);
elm_run();
end:
config_save(config, NULL);
config_free(config);