@@ -200,35 +200,65 @@ css_error css_select_strings_intern(css_select_strings *str)
200200
201201void css_select_strings_unref (css_select_strings * str )
202202{
203- lwc_string_unref (str -> universal );
204- lwc_string_unref (str -> first_child );
205- lwc_string_unref (str -> link );
206- lwc_string_unref (str -> visited );
207- lwc_string_unref (str -> hover );
208- lwc_string_unref (str -> active );
209- lwc_string_unref (str -> focus );
210- lwc_string_unref (str -> nth_child );
211- lwc_string_unref (str -> nth_last_child );
212- lwc_string_unref (str -> nth_of_type );
213- lwc_string_unref (str -> nth_last_of_type );
214- lwc_string_unref (str -> last_child );
215- lwc_string_unref (str -> first_of_type );
216- lwc_string_unref (str -> last_of_type );
217- lwc_string_unref (str -> only_child );
218- lwc_string_unref (str -> only_of_type );
219- lwc_string_unref (str -> root );
220- lwc_string_unref (str -> empty );
221- lwc_string_unref (str -> target );
222- lwc_string_unref (str -> lang );
223- lwc_string_unref (str -> enabled );
224- lwc_string_unref (str -> disabled );
225- lwc_string_unref (str -> checked );
226- lwc_string_unref (str -> first_line );
227- lwc_string_unref (str -> first_letter );
228- lwc_string_unref (str -> before );
229- lwc_string_unref (str -> after );
230-
231- lwc_string_unref (str -> width );
232- lwc_string_unref (str -> height );
233- lwc_string_unref (str -> prefers_color_scheme );
203+ if (str -> universal != NULL )
204+ lwc_string_unref (str -> universal );
205+ if (str -> first_child != NULL )
206+ lwc_string_unref (str -> first_child );
207+ if (str -> link != NULL )
208+ lwc_string_unref (str -> link );
209+ if (str -> visited != NULL )
210+ lwc_string_unref (str -> visited );
211+ if (str -> hover != NULL )
212+ lwc_string_unref (str -> hover );
213+ if (str -> active != NULL )
214+ lwc_string_unref (str -> active );
215+ if (str -> focus != NULL )
216+ lwc_string_unref (str -> focus );
217+ if (str -> nth_child != NULL )
218+ lwc_string_unref (str -> nth_child );
219+ if (str -> nth_last_child != NULL )
220+ lwc_string_unref (str -> nth_last_child );
221+ if (str -> nth_of_type != NULL )
222+ lwc_string_unref (str -> nth_of_type );
223+ if (str -> nth_last_of_type != NULL )
224+ lwc_string_unref (str -> nth_last_of_type );
225+ if (str -> last_child != NULL )
226+ lwc_string_unref (str -> last_child );
227+ if (str -> first_of_type != NULL )
228+ lwc_string_unref (str -> first_of_type );
229+ if (str -> last_of_type != NULL )
230+ lwc_string_unref (str -> last_of_type );
231+ if (str -> only_child != NULL )
232+ lwc_string_unref (str -> only_child );
233+ if (str -> only_of_type != NULL )
234+ lwc_string_unref (str -> only_of_type );
235+ if (str -> root != NULL )
236+ lwc_string_unref (str -> root );
237+ if (str -> empty != NULL )
238+ lwc_string_unref (str -> empty );
239+ if (str -> target != NULL )
240+ lwc_string_unref (str -> target );
241+ if (str -> lang != NULL )
242+ lwc_string_unref (str -> lang );
243+ if (str -> enabled != NULL )
244+ lwc_string_unref (str -> enabled );
245+ if (str -> disabled != NULL )
246+ lwc_string_unref (str -> disabled );
247+ if (str -> checked != NULL )
248+ lwc_string_unref (str -> checked );
249+ if (str -> first_line != NULL )
250+ lwc_string_unref (str -> first_line );
251+ if (str -> first_letter != NULL )
252+ lwc_string_unref (str -> first_letter );
253+ if (str -> before != NULL )
254+ lwc_string_unref (str -> before );
255+ if (str -> after != NULL )
256+ lwc_string_unref (str -> after );
257+
258+ if (str -> width != NULL )
259+ lwc_string_unref (str -> width );
260+ if (str -> height != NULL )
261+ lwc_string_unref (str -> height );
262+ if (str -> prefers_color_scheme != NULL )
263+ lwc_string_unref (str -> prefers_color_scheme );
234264}
0 commit comments