diff options
author | Rebecca Schulman <rebecka@eazel.com> | 2001-03-02 03:16:59 +0000 |
---|---|---|
committer | Rebecca Schulman <rebecka@src.gnome.org> | 2001-03-02 03:16:59 +0000 |
commit | bccdd692ef818f3925314acb7819c6a3a7995fe3 (patch) | |
tree | ad9e12942737569955cec5e4a3f298d9f6b23264 /libnautilus-private/nautilus-volume-monitor.c | |
parent | 4b18ec7c60e2ab438047b4090c2e1efade11d6df (diff) | |
download | nautilus-bccdd692ef818f3925314acb7819c6a3a7995fe3.tar.gz |
Some leak checks that showed up on the top of the leak checker profile.
2001-03-01 Rebecca Schulman <rebecka@eazel.com>
Some leak checks that showed up on the top of the
leak checker profile. (bugzilla.eazel.com 7253)
These changes reduce leakage in a short session
by 100,000 bytes
reviewed by: Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-preferences.c:
(nautilus_preferences_get_user_level):
Remove leak of a string every time we checked user level
* libnautilus-extensions/nautilus-smooth-text-layout.c:
(nautilus_smooth_text_layout_destroy),
(smooth_text_layout_clear_lines):
Remove a leak of the text and some other characters every time
we created and used a text layout object, which was about 6000
times for a short run for me
* libnautilus-extensions/nautilus-volume-monitor.c:
Stop strdup'ing a string where we would have leaked the original.
Diffstat (limited to 'libnautilus-private/nautilus-volume-monitor.c')
-rw-r--r-- | libnautilus-private/nautilus-volume-monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-volume-monitor.c b/libnautilus-private/nautilus-volume-monitor.c index e56c3a65e..62e90d6d5 100644 --- a/libnautilus-private/nautilus-volume-monitor.c +++ b/libnautilus-private/nautilus-volume-monitor.c @@ -554,7 +554,7 @@ modify_volume_name_for_display (NautilusVolume *volume) /* Save pretty name back into volume info */ g_free (volume->volume_name); - volume->volume_name = g_strdup (name); + volume->volume_name = name; } /* nautilus_volume_monitor_get_target_uri |