Re: [PATCH] Use the volume monitor correctly and make it act like Nautilus' sidebar



On Fri, 2007-12-14 at 19:25 -0500, David Zeuthen wrote:
> I've attached the patch to this mail. Thanks for reviewing it.

And here's a patch that fixes a leak. Goes on top of the previous one.
Sorry about that. Thanks!

     David

diff --git a/src/gtkfilesystemgvfs.c b/src/gtkfilesystemgvfs.c
index 4c0c080..a93e3e7 100644
--- a/src/gtkfilesystemgvfs.c
+++ b/src/gtkfilesystemgvfs.c
@@ -284,8 +284,8 @@ get_volumes_list (GtkFileSystemGVfs *file_system)
                    * he just unmounted it.
                    */
                   file_system->volumes = g_slist_prepend (file_system->volumes, g_object_ref (volume));
-                  g_object_unref (volume);
                 }
+              g_object_unref (volume);
             }
         }
       else


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