Merge branch 'master' into blender2.8
[blender.git] / source / blender / python / intern / bpy_interface.c
index cd4d2f7a1c2dfd5bda80aba972bf77182c2b0f00..c6337f2ac28b1685a142a6da84e6b493785e9793 100644 (file)
@@ -870,6 +870,7 @@ static void bpy_module_delay_init(PyObject *bpy_proxy)
 
        BLI_strncpy(filename_abs, filename_rel, sizeof(filename_abs));
        BLI_path_cwd(filename_abs, sizeof(filename_abs));
+       Py_DECREF(filename_obj);
 
        argv[0] = filename_abs;
        argv[1] = NULL;