summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2008-03-12 21:56:05 -0400
committerSøren Sandmann <sandmann@redhat.com>2008-03-12 21:56:05 -0400
commitef80f835a6229e5b6701a10e9474f38d5fac6311 (patch)
treefe3aff1c9e2452dd47e724ea6374aaec0b1da829
parent354691051aeb569618f7a86afc5a3af204185bee (diff)
Fix memory problem
-rw-r--r--siv.c2
-rw-r--r--window.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/siv.c b/siv.c
index ac60ff0..b899845 100644
--- a/siv.c
+++ b/siv.c
@@ -248,7 +248,7 @@ app_new (int argc, char **argv)
if (g_path_is_absolute (option))
{
- name = option;
+ name = g_strdup (option);
}
else
{
diff --git a/window.c b/window.c
index 31f6daf..b71820a 100644
--- a/window.c
+++ b/window.c
@@ -238,11 +238,11 @@ save_meta_data (Window *window)
vadj = gtk_scrolled_window_get_vadjustment (get_widget (window, "scrolled_window"));
hadj = gtk_scrolled_window_get_hadjustment (get_widget (window, "scrolled_window"));
-
+
app_set_meta_data (window->app,
window->filename,
x, y, width, height,
- bg, smooth,
+ smooth, bg,
window->zoom_level,
vadj->value, hadj->value);
}