~foxtrotgps-team/foxtrotgps/trunk

« back to all changes in this revision

Viewing changes to src/hrm_functions.c

  • Committer: Paul Wise
  • Author(s): Jesse Gardner
  • Date: 2021-08-17 06:01:48 UTC
  • Revision ID: pabs3@bonedaddy.net-20210817060148-340rbstk87jrj6zw
Added g_thread_unref wherever g_thead_new is used

Fixes: https://bazaar.launchpad.net/~foxtrotgps-team/foxtrotgps/trunk/revision/315
Cleanup-by: Paul Wise <pabs3@bonedaddy.net>

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
{
235
235
#ifdef HAVE_BLUEZ
236
236
#if GLIB_CHECK_VERSION(2,34,0)
237
 
        g_thread_new("get hrm thread", &get_hrm_data_thread, (gpointer) NULL);
 
237
        g_thread_unref(g_thread_new("get hrm thread", &get_hrm_data_thread, (gpointer) NULL));
238
238
#else
239
239
        g_thread_create(&get_hrm_data_thread, NULL, FALSE, NULL);
240
240
#endif