[network-manager-netbook] Don't unref icon theme when it changes.



commit fecab107238c0fb08321718b1d513d413c93a7ae
Author: Tambet Ingo <tambet gmail com>
Date:   Thu May 28 10:32:04 2009 +0300

    Don't unref icon theme when it changes.
    
    Fixes a crash on startup when the icon theme is changed.
---
 src/nmn-icon-cache.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/nmn-icon-cache.c b/src/nmn-icon-cache.c
index 6f6baf0..5e019fa 100644
--- a/src/nmn-icon-cache.c
+++ b/src/nmn-icon-cache.c
@@ -14,10 +14,8 @@ nmn_icon_cache_invalidate (void)
         cache = NULL;
     }
 
-    if (icon_theme) {
-        g_object_unref (icon_theme);
+    if (icon_theme)
         icon_theme = NULL;
-    }
 }
 
 GdkPixbuf *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]