Kristina Hanicova 155151a3d0 Use g_steal_pointer where possible
Via coccinelle (not the handbag!)
spatches used:
@ rule1 @
identifier a, b;
symbol NULL;
@@

- b = a;
  ... when != a
- a = NULL;
+ b = g_steal_pointer(&a);

@@

- *b = a;
  ... when != a
- a = NULL;
+ *b = g_steal_pointer(&a);

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
2021-03-01 15:54:42 +01:00
..
2020-06-10 14:00:38 +02:00
2020-07-10 09:40:58 +02:00
2020-02-24 23:15:50 +01:00
2020-06-10 14:00:38 +02:00
2021-02-10 13:37:12 +01:00
2020-11-27 16:28:31 +01:00
2020-02-24 23:15:50 +01:00