summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2013-08-26 18:00:43 +0000
committerdominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2013-08-26 18:00:43 +0000
commit3f41d3db94f5328a04d9907a0b14de7fb2aa6804 (patch)
treeca45b79c49ed38c1d71d730562f9c1c7ad6c2470
parentd7251115fb6bd7a68bb7cee2541d211185b20274 (diff)
downloadlibproxy-3f41d3db94f5328a04d9907a0b14de7fb2aa6804.tar.gz
Simlplify object cleanup.
g_object_unref() does a good enough job for us. Fixes bug 192. git-svn-id: http://libproxy.googlecode.com/svn/trunk@876 c587cffe-e639-0410-9787-d7902ae8ed56
-rw-r--r--libproxy/modules/pxgsettings.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libproxy/modules/pxgsettings.cpp b/libproxy/modules/pxgsettings.cpp
index 580a652..79c575b 100644
--- a/libproxy/modules/pxgsettings.cpp
+++ b/libproxy/modules/pxgsettings.cpp
@@ -157,9 +157,7 @@ int main(int argc, char **argv) {
g_main_loop_run(loop);
// Cleanup
- while (G_IS_OBJECT(settings)) {
- g_object_unref(settings);
- }
+ g_object_unref(settings);
g_io_channel_shutdown(inchan, FALSE, NULL);
g_io_channel_shutdown(outchan, FALSE, NULL);
g_io_channel_unref(inchan);