File libproxy-pxgsettings-crash.patch of Package libproxy

Index: libproxy/modules/pxgsettings.cpp
===================================================================
--- libproxy/modules/pxgsettings.cpp.orig
+++ libproxy/modules/pxgsettings.cpp
@@ -157,9 +157,7 @@ int main(int argc, char **argv) {
 	g_main_loop_run(loop);
 
 	// Cleanup
-	while (G_IS_OBJECT(client)) {
-		g_object_unref(client);
-	}
+	g_object_unref(client);
 	g_io_channel_shutdown(inchan,  FALSE, NULL);
 	g_io_channel_shutdown(outchan, FALSE, NULL);
 	g_io_channel_unref(inchan);
openSUSE Build Service is sponsored by