X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprompt.c;fp=openbox%2Fprompt.c;h=6df991a4af0dc9ad72de02c33f2616cd1895dc67;hb=d179d6428ae585a3b8a13479bfe4586e41de2ff9;hp=e73545a51b7227850d436de9455b632ac81325c5;hpb=d45af3cb45f35ba639efac15675ed10b3515a7f0;p=chaz%2Fopenbox diff --git a/openbox/prompt.c b/openbox/prompt.c index e73545a5..6df991a4 100644 --- a/openbox/prompt.c +++ b/openbox/prompt.c @@ -152,7 +152,7 @@ ObPrompt* prompt_new(const gchar *msg, const gchar *title, attrib.override_redirect = FALSE; - self = g_new0(ObPrompt, 1); + self = g_slice_new0(ObPrompt); self->ref = 1; self->func = func; self->cleanup = cleanup; @@ -250,7 +250,7 @@ void prompt_unref(ObPrompt *self) XDestroyWindow(obt_display, self->msg.window); XDestroyWindow(obt_display, self->super.window); - g_free(self); + g_slice_free(ObPrompt, self); } }