~foxtrotgps-team/foxtrotgps/trunk

« back to all changes in this revision

Viewing changes to src/gps_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:
849
849
        }
850
850
 
851
851
#if GLIB_CHECK_VERSION(2,34,0)
852
 
        g_thread_new("gps thread", &get_gps_thread, (gpointer)NULL);
 
852
        g_thread_unref(g_thread_new("gps thread", &get_gps_thread, (gpointer)NULL));
853
853
#else
854
854
        g_thread_create(&get_gps_thread, NULL, FALSE, NULL);
855
855
#endif