~foxtrotgps-team/foxtrotgps/trunk

« back to all changes in this revision

Viewing changes to src/tile_management.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:
132
132
        gchar *key;
133
133
        int value=1;
134
134
        int *found;
135
 
        int maxzoom=18;
 
135
        int maxzoom=20;
136
136
        gboolean retval = FALSE;
137
137
        gchar *inp, *outp;
138
138
        int nfmts;
218
218
                g_hash_table_insert(ht, key, &value);
219
219
 
220
220
#if GLIB_CHECK_VERSION(2,34,0)
221
 
                if (!g_thread_new("download thread", &dl_thread, (gpointer *)tile_data) != 0)
 
221
                GThread *gt = g_thread_new("download thread", &dl_thread, (gpointer *)tile_data);
 
222
                if (gt != 0)
 
223
                        g_thread_unref(gt);
 
224
                else
222
225
#else
223
226
                if (!g_thread_create(&dl_thread, (void *)tile_data, FALSE, NULL) != 0)
224
227
#endif