[gnome-photos] application: Fix an invalid read



commit 175dad4787b60f2b01839ec93c4d3e35471ea2b9
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Nov 25 11:29:57 2015 +0100

    application: Fix an invalid read
    
    We shouldn't unref the resource because static resources are
    automatically unreffed by the "destructor".

 src/photos-application.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 72235a0..ea757a8 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1389,7 +1389,6 @@ photos_application_dispose (GObject *object)
   if (priv->resource != NULL)
     {
       g_resources_unregister (priv->resource);
-      g_resource_unref (priv->resource);
       priv->resource = NULL;
     }
 


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