forked from AuroraMiddleware/gtk
gtk-demo: Plug a memory leak
This commit is contained in:
parent
8e82d0fba2
commit
fa1bb8972a
@ -543,7 +543,7 @@ add_data_tab (const gchar *demoname)
|
|||||||
* not an image. Let's try something else then.
|
* not an image. Let's try something else then.
|
||||||
*/
|
*/
|
||||||
g_object_ref_sink (widget);
|
g_object_ref_sink (widget);
|
||||||
gtk_widget_destroy (widget);
|
g_object_unref (widget);
|
||||||
|
|
||||||
bytes = g_resources_lookup_data (resource_name, 0, NULL);
|
bytes = g_resources_lookup_data (resource_name, 0, NULL);
|
||||||
g_assert (bytes);
|
g_assert (bytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user