summaryrefslogtreecommitdiff
path: root/src/dlg-new.c
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-03-15 10:57:07 +0800
committerLuke from DC <[email protected]>2023-03-22 03:36:00 +0000
commit16ef96fa57c1e1f550b9de13f4d87ad4c5ce9452 (patch)
tree5b9a4c9d513705d59da8df23e37a268dc9f363e1 /src/dlg-new.c
parentc7bb2fa397156a1ce000fe375acfe82a39d51cb0 (diff)
downloadengrampa-16ef96fa57c1e1f550b9de13f4d87ad4c5ce9452.tar.bz2
engrampa-16ef96fa57c1e1f550b9de13f4d87ad4c5ce9452.tar.xz
Fix archive file save as function
Diffstat (limited to 'src/dlg-new.c')
-rw-r--r--src/dlg-new.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dlg-new.c b/src/dlg-new.c
index 12fc138..118e732 100644
--- a/src/dlg-new.c
+++ b/src/dlg-new.c
@@ -40,6 +40,8 @@ static void
destroy_cb (GtkWidget *widget,
DlgNewData *data)
{
+ if (data->original_file != NULL)
+ g_object_unref (data->original_file);
g_free (data);
}