diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-11 02:34:44 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-11 02:34:44 +0000 |
commit | 173354c8470b77edeb920df026c0dabfc9af50d2 (patch) | |
tree | 7bc74982002b878a5908f324e652d42219de4cbd /libs/surfaces | |
parent | e8fede43eeda1fba263f79ac5647bc7abf955733 (diff) |
Fix a few tiny memory leaks.
git-svn-id: svn://localhost/ardour2/branches/3.0@8244 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index aa98470829..8eff8e0e1b 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -224,9 +224,7 @@ OSC::start () void OSC::thread_init () { - char* c = new char[4]; - strcpy (c, X_("OSC")); - pthread_set_name (c); + pthread_set_name (X_("OSC")); if (_osc_unix_server) { Glib::RefPtr<IOSource> src = IOSource::create (lo_server_get_socket_fd (_osc_unix_server), IO_IN|IO_HUP|IO_ERR); |