Try to avoid accessing profiling objects after they are freed.
[bluesky.git] / bluesky / cloudlog.c
index 4c94c49..64183b7 100644 (file)
@@ -485,6 +485,7 @@ static void cloudlog_flush_complete(BlueSkyStoreAsync *async,
         async2->op = STORE_OP_PUT;
         async2->key = g_strdup(async->key);
         async2->data = record->data;
+        async2->profile = async->profile;
         bluesky_string_ref(record->data);
         bluesky_store_async_submit(async2);
         bluesky_store_async_add_notifier(async2,