Thomas Haller ebc518da45 array: fix corrupt state of GPtrArray after g_ptr_array_extend_and_steal()
g_ptr_array_extend_and_steal() leaves the GPtrArray in an invalid state,
so if you would try to append another pointer, it leads to a crash.

Also adjust the test case so that it would result in the crash (without
the fix).

Fixes: 0675703af08d ('Adding g_ptr_array_extend_and_steal() function to glib/garray.c')
2020-05-07 09:44:40 +01:00
..
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2010-07-10 23:56:45 -04:00
2017-05-24 11:58:19 +02:00
2017-02-20 12:40:26 +01:00
2014-10-02 14:41:01 -04:00
2010-07-05 23:43:47 -04:00
2018-12-17 16:19:31 -05:00
2011-02-13 23:49:19 -05:00
2018-12-28 15:30:28 +01:00
2011-10-08 19:02:06 -04:00
2017-05-24 11:58:19 +02:00
2013-11-23 00:39:07 -05:00
2010-07-07 22:03:02 -04:00
2019-05-01 13:01:14 -07:00
2020-01-21 19:54:55 +04:00
2017-05-24 11:58:19 +02:00
2011-10-13 01:00:57 -04:00
2017-05-24 11:58:19 +02:00
2011-01-27 23:07:53 -05:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-12-17 17:16:03 +00:00
2015-09-12 11:13:45 -04:00
2017-05-24 11:58:19 +02:00
2015-08-31 13:59:48 -04:00
2020-02-07 16:24:48 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2019-11-25 13:09:25 +01:00