GOption: fix bug in strv mode
authorRyan Lortie <desrt@desrt.ca>
Wed, 5 Feb 2014 17:11:50 +0000 (17:11 +0000)
committerRyan Lortie <desrt@desrt.ca>
Thu, 6 Feb 2014 12:02:53 +0000 (12:02 +0000)
commit7f36233042691d942982c4e6c4ea16f7e27aeb6b
tree3f85a51e04e52bc95fb39819a7c5933ee19ba5fe
parent6939add283f948864e288390689fc12b9c61cbb1
GOption: fix bug in strv mode

We are a bit too aggressive about freeing memory in strv mode.  Only
free it in the case that we actually set the pointer to NULL.

Uncovered by the GApplication tests.
glib/goption.c