summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2013-12-30 15:40:12 +0100
committerFran├žois Revol <revol@free.fr>2014-01-04 19:43:51 +0100
commitd69997c8a323bb593f642830b28ed0c4d7de476c (patch)
treeb3ccd856bfa7f9f192a55279656785509d67528e /beos
parent748b13c8bad9f7c900284396286b6f60e053f683 (diff)
downloadnetsurf-d69997c8a323bb593f642830b28ed0c4d7de476c.tar.gz
netsurf-d69997c8a323bb593f642830b28ed0c4d7de476c.tar.bz2
beos: Add missing call to lwc_string_unref()
Diffstat (limited to 'beos')
-rw-r--r--beos/gui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp
index 537c3a5a2..131173c64 100644
--- a/beos/gui.cpp
+++ b/beos/gui.cpp
@@ -918,10 +918,11 @@ void nsbeos_gui_view_source(struct hlcache_handle *content)
return;
}
lwc_string *mime = content_get_mime_type(content);
- const char *mime_string = lwc_string_data(mime);
- if (mime)
+ if (mime) {
file.WriteAttr("BEOS:TYPE", B_MIME_STRING_TYPE, 0LL,
- mime_string, lwc_string_length(mime) + 1);
+ lwc_string_data(mime), lwc_string_length(mime) + 1);
+ lwc_string_unref(mime);
+ }
}